[ABE.pm] Ruby Q

Ricardo SIGNES rjbs-perl-abe at lists.manxome.org
Mon Apr 17 14:20:52 PDT 2006


* Faber Fedor <faber at linuxnj.com> [2006-04-17T17:00:49]
> On 16/04/06 22:11 -0400, Ricardo SIGNES wrote:
> > Ruby's scoping is more sane than Python's, but
> > you can still shoot your foot more easily than in Perl, 
> 
> Hmm, I assumed the scoping would be Perl-like.  I'd better read up on
> that.

The unPerl-like-ness-itude of it is that "a variable's scope begins at the
point where its symbol is assigned to" rather than "a variable's scope begins
when it is declared to begin."

-- 
rjbs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/abe-pm/attachments/20060417/db3a7762/attachment.bin 


More information about the ABE-pm mailing list