Hi,
In message "[ruby-talk:02495] Re: 'in' vs. 'into'"
on 00/04/17, Andrew Hunt <andy / Toolshed.Com> writes:
|
| ># rescue MyException into myVar
| >#
| >I agree.
|
|I like "into" as well, for what it's worth.
Hmm, I've not decided yet. Here's the list of options:
* rescue IOError in var
Current parser accepts this syntax. No new reserved word
introduced.
* rescue IOError into var
More descriptive than 'in'. Introducing new reserved word, which
raise backward compatibility problem.
* rescue IOError => var
No reserved word introduced. Symbols may ambiguous.
* exception
This option introcudes new global function `exception' which
returns the $! value. No reserved word introduced. I think this
simple way.
* Exception::last
This may more descriptive than mere `exception'. But I feel it's
too long to type in. You know I'm lazy. Notice `ruby' is 2
letter shorter than `python'?
matz.