From: Robin Stocker Date: 2006-09-27T17:58:38+09:00 Subject: Re: Ahh, the hazards of an interpretive language... Pete wrote: > My typo in 'elsif' was of course never being caught because execution > never reached it. (If I replace the 'return' with a non-exiting statement, > the error shows up at once, of course.) Maybe an editor with syntax highlighting would help with this kind of typo. But you are right, you won't make this mistake again ;) > [The experience inspired me to see how the construct is handled in > other languages. None of them seem to agree here! (C family: "else if"; > Python: "elif", Algol: "ELSF"...) And only my old idol Pop-11 [WHO?!] > actually *uses* "elseif".] Perl also uses "elsif". This is one of the good things Ruby inherited from Perl if you ask me :). Robin Stocker