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

From: schneik@...
Date: 2000-04-14 22:23:41 UTC
List: ruby-talk #2482

Dave Thomas writes:

# 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?

I agree.

I'd even promote your endorsement from "... gives a hint...." to "... gives
a somewhat self-descriptive indication....".  Unlike "in", at least "into"
is not somewhat counter-intuitive (at least for me).

(I suppose your pondering is what you might almost call propounding a good
point pertaining to prevailing penultimate preposition presuppositions.)

Conrad Schneiker
(This note is unofficial and subject to improvement without notice.)


In This Thread

Prev Next