GulfOfMexico icon indicating copy to clipboard operation
GulfOfMexico copied to clipboard

Add Conditions

Open amir-s opened this issue 1 year ago • 4 comments

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.

amir-s avatar Jul 09 '24 18:07 amir-s

It's missing the elif

guigui0246 avatar Jul 09 '24 20:07 guigui0246

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.

amir-s avatar Jul 09 '24 21:07 amir-s

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.

Then it should be elifaton because it would make notafile indicating it's not the reverse of a file

guigui0246 avatar Jul 11 '24 08:07 guigui0246

@guigui0246 That actually makes perfect sense. I'll amend the commit and include the context in it as well.

amir-s avatar Jul 11 '24 16:07 amir-s