I hate else if

Posted by s on Aug. 23, 2008, 11:36 a.m.

What kind of language design makes a two word keyword? Elif reads much more elegantly. It even aligns with else

Redeyed potatos are off to chase me so go feed yourself a troll

Comments

PY 16 years, 4 months ago

else if is two keywords, though.

else, and if.

ESA 16 years, 4 months ago

Elif is a name. But it sounds better than having two words. It's like a key having two prong things.

s 16 years, 4 months ago

else if is used like a single keyword. Sure, else if covers it through parsing makeup but it doesn't cover the use. It'd be like saying if()if() instead of if()&&()

Perhaps if #define elif else if got elif syntax highlighted we could all get along

PY 16 years, 4 months ago

Yeah :)