develooper Front page | perl.perl5.porters | Postings from January 2001

Re: Multiple post(inc|dec)rement

Thread Previous | Thread Next
From:
Simon Cozens
Date:
January 17, 2001 06:39
Subject:
Re: Multiple post(inc|dec)rement
Message ID:
20010117143952.A23531@pembro26.pmb.ox.ac.uk
On Wed, Jan 17, 2001 at 02:21:34PM +0100, Johan Vromans wrote:
> Stephen McCamant <smcc@CSUA.Berkeley.EDU> writes:
> 
> > IMHO, pp_pre(inc|dec) were written the way they are now for a reason
> > (namely efficiency), and it isn't worth slowing them down just to make 
> > some pathological examples more intuitive.
> 
> And, my dear Stephen, how much is the slowdown for an average Perl
> program?

I'm of the opinion that if people think that writing

    (++$a, ++$a)

is a good idea, then they're fundamentally confused anyway. Slowing
Perl down isn't going to unconfuse them.

-- 
You want to read that stuff, fine. You want to create a network for such 
things, fine. You want to explore the theoretical boundaries of free speech, 
fine. But when it starts impacting *people* trying to *communicate*, then 
that is where I draw the line. - Russ Allbery, http://www.slacker.com/rant.html

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