develooper Front page | perl.perl6.language | Postings from October 2005

Re: syntax for accessing multiple versions of a module

Thread Previous | Thread Next
From:
John Adams
Date:
October 21, 2005 05:11
Subject:
Re: syntax for accessing multiple versions of a module
Message ID:
1261032.1129896650770.JavaMail.root@mswamui-chipeau.atl.sa.earthlink.net
-----Original Message-----
From: "Patrick R. Michaud" <pmichaud@pobox.com>

>I can state the compelling reason for this one -- it's way too 
confusing when $1, $2, $3, etc. correspond to $/[0], $/[1], $/[2], etc.

>In many discussions of capturing semantics earlier in the year, 
nearly everyone using $1, $2, $3 in examples, documentation, and 
discussion was having trouble with off-by-one errors.  This includes
the language designers, and even those who were advocating staying
with $1, $2, $3.  Once we switched to using $0, $1, $2, etc., 
nearly all of the confusion and mistakes disappeared.

Okay, this I buy. There's a cost to it, but it's worth it.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About