From: Mark Hubbart Date: 2004-08-29T16:17:43+09:00 Subject: Re: BUG? or inside argument list On Aug 28, 2004, at 10:20 AM, Kristof Bastiaensen wrote: > On Sat, 28 Aug 2004 02:03:43 +0900, Lennon Day-Reynolds wrote: > >> Kristof, >> >> You can use the '||' operator instead of 'or' in argumet lists: >> >> puts(nil || "string") >> String.new(nil || "string") >> >> > > Yes, I found out that '||' works, but I prefer "or" because it looks > better. I find that the english words express better the meaning than > symbols. If I am correct the english versions and symbol versions are > a > bit different (preference rules or something), but it is strange that > they > aren't allowed inside an argument list. Is there a reason why this > is so, or is it just a bug? I have to say, it seems odd to me, to... perhaps it's an unintentional limitation in the parser? And I agree about the "or" vs "||" thing... whenever I have the choice, I prefer "or". it's easier to type, and it looks nicer. cheers, Mark