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

re: My first reaction: of course it doesn't exist there's a space between else and if. But then again second reaction was but hey Ruby does have elsif ...

I'm not sure that a space necessarily indicates separate keywords. It all depends on how the grammar is written. What's stopping a language grammar from containing else if as a terminal symbol?


Nothing but my expectations are limited to that space. Even programming languages should think about UX. If you put else if as keyword with a space I wouldn't expect it to be 1 keyword but 2. But that's just my subjective view on that point.

code of conduct - report abuse