[ruby-talk:02481] 'in' vs. 'into'

From: Dave Thomas <Dave@...>
Date: 2000-04-14 21:44:53 UTC
List: ruby-talk #2481
I was writing about exceptions, and explaining the new

   rescue MyException in myVar

syntax, when I got to thinking. I'm wondering if it would read better
if it said:

   rescue MyException into myVar

The 'into' gives a hint that the exception is going to be stored in
the variable, while 'in' almost suggests that the variable has
something to do with the exception class _before_ the exception is
raised.


What do y'all think?


Dave

In This Thread

Prev Next