5 ms·
And it does in C as well!
by saagarjha 7y ago
And it does in C as well!
- r00fus 7y agoSo does this mean that JS does satisfy the principle of least astonishment for an experienced c-coder (something important when it was developed in the early 2000s)? In what language (other than a RPN based language like Lisp) would this expect to return something meaningful?
- dingo_bat 7y ago> So does this mean that JS does satisfy the principle of least astonishment for an experienced c-coder No, this means don't use weird ambiguous syntax even if it is legal in the language.
- saagarjha 7y agoYes, you could say that. It preserves the order of operations and “reverse-truthiness” (i.e. boolean-to-integer) conversions from C.