0

elif sounds stupid

why elif? why not else if or elsif?

18th Feb 2017, 8:37 PM
Hamid Ariannejad
Hamid Ariannejad - avatar
4 Respuestas
+ 5
It's easier to type elif than else if :-)
18th Feb 2017, 8:43 PM
Samuel Šúr
Samuel Šúr - avatar
+ 4
I don't actually know. Maybe they did not want to split a keyword into two separate words?
18th Feb 2017, 9:46 PM
Varun Ramani
Varun Ramani - avatar
+ 4
Why not? It's shorter, and as far as readeable as two keywords version ^^ It's just a little frustrating to cannot have the choice between the two syntaxes, but we get used to it very quickly ;)
19th Feb 2017, 7:08 AM
visph
visph - avatar
+ 3
"else if" alredy exist in javascript, they used "elif" so that you won´t get confused with other languages
18th Feb 2017, 8:55 PM
Warrior422
Warrior422 - avatar