From: Marnen Laibow-Koser Date: 2010-01-01T02:25:37+09:00 Subject: Re: Why can't I use "or" here? Albert Schlef wrote: > Marnen Laibow-Koser wrote: >> Albert Schlef wrote: >>> Albert Schlef wrote: >>> >>> Hey, I now see that this works: >>> >>> some_func((ARGV[0] or raise "You must provide an argument")) >>> >>> Great. On the other hand, I won't be able to remember this the next time >>> I need it. >> >> Just use Ruby's rescue syntax instead of trying to be clever. > > What do you mean? begin rescue end Look it up. Or is that not what you didn't understand? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.