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

Re: Multiple post(inc|dec)rement

Thread Previous | Thread Next
From:
JVromans
Date:
January 18, 2001 10:25
Subject:
Re: Multiple post(inc|dec)rement
Message ID:
14950.60971.200302.304772@phoenix.squirrel.nl
[Quoting nick@ing-simmons.net, on January 17 2001, 23:35, in "Re: Multiple post(in"]
> Johan Vromans <jvromans@squirrel.nl> writes:
> >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 agree with Stephen - I use ++ a lot and messing with temporaries 
> has more cost than you would expect.

Then be consequent -- make it a syntax error.

-- Johan

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