Darwin
6/12/2006 5:14:00 AM
On Sun, 11 Jun 2006 20:59:32 GMT, Just Another Victim of the Ambient
Morality wrote:
> 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...
I prefer "elsif". Phonetically, "elsif" is identical to "else if". So
they have that in common. "else_if" requires two extra symbols and the
'_' requires that the shift key be pressed. I'm all for conciseness and
ease of typing.