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

Re: Multiple post(inc|dec)rement

Thread Previous | Thread Next
From:
nick
Date:
January 17, 2001 15:38
Subject:
Re: Multiple post(inc|dec)rement
Message ID:
E14J26r-0006tl-00@roam1
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.

>
>-- Johan
-- 
Nick Ing-Simmons


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