re: The `else if` Keyword Doesn’t Exist in Java VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Maybe this counts as mind blowing as well. The elif if python does not work any differently than the else if in Java. The only valid reason for hav...
 

Maybe I was unclear, but the reason that this is so mind blowing to me is that else if isn’t a keyword. There is only elseand if. Python had to introduce a third keyword because else if isn’t valid syntax. In other words, else if comes for free in C-like languages due to the language grammar, and I had just assumed it was a special token.

code of conduct - report abuse