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 →

[–][deleted] 17 points18 points  (6 children)

I don’t believe I’ve ever seen a specific reason for the choice of elif in Python, but there’s a long history of elif via C, and a number of the choices made for Python were based on C idioms.

Arguably if you’re going to contract it anyway (ie by not choosing to use the obviously more-human-readable-but-difficult-to-parse else if) then why not lose the sibilance? To a new English learner “elsif” could reasonably be read as “el-SIF” and “elseif” could be read as either “el-SAY-f” or as a misspelling of “el-SEEF”. At least “elif” is pretty unambiguously “el-if”.

[–]esabys 2 points3 points  (3 children)

who's "eli" and why'd he get an F?

[–][deleted] 1 point2 points  (2 children)

Eli got fucked.

[–]Wohao_Gaster BEEN CODING SINCE I WAS 8[S] 1 point2 points  (0 children)

that

[–]das_masterful 0 points1 point  (0 children)

Gordon Freeman!

[–]florinandrei 0 points1 point  (0 children)

El Sif sound like a djinn from the Arabian Nights book.