2006/2/4, Jeffrey Schwab <jeff / schwabcenter.com>:
> Robert Klemme wrote:
> > I don't know why people strive to get local variables set dynamically.
> > If you want to use them, you'll have to make them explicitely anyway.
> > So what do we gain?  Is there a real world problem that can't be solved
> > without this?
>
> Of course not.  But some code is a lot cleaner if you can use the local
> symbol table as a hash.  This is a common technique in Perl, and it
> seems to be in Python (via [gs]etattr and globals()) as well.

Ruby != Perl && Ruby != Python

I'd rather discuss this with a real world example that demonstrates
where this idiom is really needed or at least superior in clarity. ATM
I fail to see where this would bring real benefits.

Cheers

robert

--
Have a look: http://www.flickr.com/photos/fussel-foto/