From: Phillip Gawlowski Date: 2010-01-01T16:38:31+09:00 Subject: Re: Why can't I use "or" here? On 01.01.2010 08:30, Albert Schlef wrote: > Thanks Phillip (and Charles Nutter) for all your help. In my 'raise' I > tried to mimic Perl's "or die" idiom. But I see that your example is > more elegant. Thank you. :) However, my example is a plain by-the-books example of how Ruby does exceptions. So, thank Matz for creating something elegant in the first place. :) > For the time being I'll take the fourth option: The Ruby grammar is > weird in some corners, and we just have to accept it. It is indeed. The more complex your desires get, the weirder Ruby gets, IME. Overall, though, it's pretty clean and simple to use, and keeps weirdness to the edge cases. That's why I prefer a more verbose, explicit style of programming in Ruby: It makes it clear to me what I attempt, and thus, hopefully, Ruby's parser doesn't throw a wrench in my machinations. ;) -- Phillip Gawlowski