in reply to Re: Prefix and postfix increment/decrement operator query
in thread Prefix and postfix increment/decrement operator query
I have to mention that $i=$i++ or in C i=i++ is nonsensical. "i" gets assigned back to "i" and then "i" gets incremented and that value is "thrown away".
In my opinion, a lexically scoped $var is a very cheap thing and should be used if there is any doubt about some subsequent statement. I'm not advocating creating extra unnecessary vars, just ones that "add clarity".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Prefix and postfix increment/decrement operator query
by saurabh.hirani (Beadle) on Jul 03, 2009 at 04:50 UTC |