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

From: Andrew Hunt <andy@...>
Date: 2000-04-20 13:03:58 UTC
List: ruby-talk #2530
	>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.

It will do.

	>  * rescue IOError into var
	>
	>    More descriptive than 'in'.  Introducing new reserved word, which
	>    raise backward compatibility problem.

If "into" were only recongized as a keyword in this context,
that shouldn't create and backward compatibility problems (it may
wreak havoc on the parser, though...)

	>  * exception
	>
	>    This option introcudes new global function `exception' which
	>    returns the $! value.  No reserved word introduced.  I think this
	>    simple way.

I don't care for this -- the whole idea of in/into is to get away
from the globalness of $!.  


I'd vote "into" as my #1 choice, "in" as #2.

/\ndy

In This Thread

Prev Next