Calling @BrendanEich. I've wondered about this, too. I don't know the answer for any language other than C/C++.
(I mean, I know it's unknowable for C/C++, a known unknown).
-
-
-
ECMA-262 specifies much more defined behavior, for interop, and has since 1997. Order of evaluation observable due to metaprogramming hooks in base not meta layer of language, so complete spec required. The spec uses an ad-hoc operational semantics. Generally left-to-right order.
- 2 more replies
New conversation -
-
-
You can actually reduce any
#javascript code to just 6 characters
http://www.jsfuck.com/ Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Evaluation seems to be strictly left to right, and the update to the expression being incremented/decremented happens before the subexpression returns in both the prefix and postfix versions. The only difference is whether the 'before' or 'after' value is returned.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.