DEV Community

Discussion on: The `else if` Keyword Doesn’t Exist in Java

Collapse
 
renegadecoder94 profile image
Jeremy Grifski

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?

Collapse
 
_hs_ profile image
HS

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.