3 ms·
So 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 20
by r00fus 7y ago
So 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.