[ruby-talk:02528] Re: 'in' vs. 'into'

From: Dave Thomas <Dave@...>
Date: 2000-04-20 09:10:26 UTC
List: ruby-talk #2528
matz@netlab.co.jp (Yukihiro Matsumoto) writes:

> 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:

Two more

    * rescue IOError  |var|

      The analogy with blocks is a strong one - a value suddenly
      appears out of something to the left, so the |var| construct
      seems natural.

    * rescue IOError  do  |var|

      I like this less, because it changes the semantic of 'do'


Just some thoughts.


Dave

In This Thread

Prev Next