From: Jim Weirich Date: 2006-02-05T21:58:23+09:00 Subject: Re: Extract hash into local variables? Jeffrey Schwab wrote: > 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. It may be common in Perl, but it is just as misguided there as well. Read http://perl.plover.com/varvarname.html for details. -- -- Jim Weirich -- Posted via http://www.ruby-forum.com/.