9 ms·
"People don't want Javascript to be Python, C, or Java. The want it to be a better Javascript and shed some of the BS that was added at its' conception." That'
by grannyg00se 15y ago
"People don't want Javascript to be Python, C, or Java. The want it to be a better Javascript and shed some of the BS that was added at its' conception."
That's a great idea. I'd be all for shedding some of the bs for a better javascript. But the var issue isn't being solved by shedding anything. Var will still be there. But now the language will be even more complicated because of some var workarounds being added in. In the end, you still need to deal with var.
- batista 15y agoIn the end, you still need to deal with var. For legacy code, yes. But now, if you target modern browsers, you can build a whole web app using only let, and not be bothered about var and the old scope system at all.