in reply to Re^6: Pre vs Post Incrementing variables
in thread Pre vs Post Incrementing variables
You appear to be saying that the ability to describe what the implementation does, justifies why it does it that way.
The fact that this:
produces a different result to this:$i=0; print $n = ++$i, $m = ++$i;; 1 2
$i=0; print ++$i, ++$i;; 2 2
Is just plain weird. Some, including me, would say 'broken'.
Justifying the weirdness by saying "that's what it does", kinda reminds of Apple's "You're holding it wrong." explanation of Antennagate.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Pre vs Post Incrementing variables
by repellent (Priest) on Sep 13, 2010 at 06:09 UTC | |
by BrowserUk (Patriarch) on Sep 13, 2010 at 06:23 UTC |