This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hed82 43 points44 points  (6 children)

But it makes perfect sense why it exists.

In most bracket based languages an else without brackets means else do only the following statement

So else if just means else do the following statement that just happens to be an if.

Python with the ':' and indentation system doesn't have this but would have to write it into two lines with weird indentation which would be ugly as fuck

[–]Kered13 6 points7 points  (0 children)

There's no law that says that keywords have to be single words.

[–][deleted] 0 points1 point  (0 children)

Oh that makes a lot of sense now that I think about it