3 ms·
OTOH, since Javascript's order of evaluation is specified to be left-to-right, it might make more sense to also make Reason behave like Javascript, since the po
by JoelJacobson 8y ago
OTOH, since Javascript's order of evaluation is specified to be left-to-right, it might make more sense to also make Reason behave like Javascript, since the point of giving Reason a Javascript-like syntax was probably at least partly to make it easier for Javascript developers to understand the language.
If the semantics would be different for something as fundamental as order of evaluation, there is a risk Javascript developers will find the language awkward.
I guess it boils down to whether it's more important to make Reason appeal to existing Javascript- or OCaml-developers.
https://stackoverflow.com/questions/8405989/what-is-the-order-of-evaluation-for-function-arguments-in-javascript https://stackoverflow.com/questions/8405989/what-is-the-orde...