[Mpls-pm] Closure Code Samples

Dave Rolsky autarch at urth.org
Wed Oct 19 15:09:10 PDT 2005


On Wed, 19 Oct 2005, Robert Fischer wrote:

> They force context, catch errors like sin($a,$b,$c), do implicit
> referencing, and prevent errors like "PI-1" becoming "PI(-1)", all of
> which are major annoyances that you encounter without prototypes.  I
> consider doing that a whole lot, and decidedly not useless.
>
> In looking at Tom Christiansen's complaints more closely, I came to the
> conclusion that Tom Christiansen secretly hates Perl, which was a
> significant enough realization to post to my blog:

Well, Tom C hates everything AFAICT, but I think you may be the one who 
hates Perl, cause prototypes like "($$)" break very normal calling 
patterns like this:

   my @args;
   push @args, $foo ? 'a' : 'b';
   push @args, $bar;

   prototyped_sub(@args);


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/


More information about the Mpls-pm mailing list