Add Conditions
Because without conditionals, a programming language would be like a software engineer who only ever responds to emails with 'Yes'—great for positivity, terrible for project management.
It's missing the elif
It's missing the
elif
Good catch! But I don't think elif should be part of it. elif is exactly file in reverse. To prove that, here is a little script:
when (elif.split("").reverse().join("") = file) {
print(can not use elif)!
}
Adding that keyword could be confusing since elif could be used to reverse a file in the future versions, and DreamBerd should remain future compatible.
It's missing the
elifGood catch! But I don't think
elifshould be part of it.elifis exactlyfilein reverse. To prove that, here is a little script:when (elif.split("").reverse().join("") = file) { print(can not use elif)! }Adding that keyword could be confusing since
elifcould be used to reverse afilein the future versions, and DreamBerd should remain future compatible.
Then it should be elifaton because it would make notafile indicating it's not the reverse of a file
@guigui0246 That actually makes perfect sense. I'll amend the commit and include the context in it as well.