J
Just Another Victim of the Ambient Morality
Why the keyword "elsif?" It looks so wrong... Specifically, for me, it
bears little resemblance to what it represents: "else if."
Now, looking at it from the other perspective, I understand why it
wasn't "elseif." It's a little awkward to have two vowels together like
that, especially if they're unrelated (from two seperate words). Ruby was,
also, very PERL-esque, which uses the same keyword and, perhaps, this is the
real reason it was used.
Would it have been too much to have "else_if" as a keyword? It's
perfectly clear and no more wordy than a lot of method names. I'm pretty
sure that Ruby has moved on from its PERL like origins so, at least, a
keyword addition shouldn't be so bad...
So, what do people think of "elsif" and "else_if?"
Thank you for your attention...
bears little resemblance to what it represents: "else if."
Now, looking at it from the other perspective, I understand why it
wasn't "elseif." It's a little awkward to have two vowels together like
that, especially if they're unrelated (from two seperate words). Ruby was,
also, very PERL-esque, which uses the same keyword and, perhaps, this is the
real reason it was used.
Would it have been too much to have "else_if" as a keyword? It's
perfectly clear and no more wordy than a lot of method names. I'm pretty
sure that Ruby has moved on from its PERL like origins so, at least, a
keyword addition shouldn't be so bad...
So, what do people think of "elsif" and "else_if?"
Thank you for your attention...