4 ms·
Hah! Thanks for the link- I discovered this gem just now in their list of comparisons to JS syntax: Javascript | Reason --------------+-----------------
by mhink 10y ago
Hah! Thanks for the link- I discovered this gem just now in their list of comparisons to JS syntax:
Javascript | Reason
--------------+----------------------------
const x = y; | let x = y;
let x = y; | reference cells
var x = y; | No equivalent (thankfully)
- vmasto 10y ago:) Yeah, unfortunately JavaScript can only be improved by educating people not to use the horrible parts (rather than fixing/deprecating them which is not possible). const and let were extremely necessary.