Re:Structure and Interpretation of Computer Programs – JavaS...
by s_y_n_t_a_x on Wednesday December 18, 2019 @07:36PM
(#21830983)
I come from Lua so I'm used to declaring local variables with "local".
Also, I like knowing which variables won't be reassigned (const), and which will (let).
Re:Structure and Interpretation of Computer Programs – JavaS...
by shakna on Thursday December 19, 2019 @04:36AM
(#21833359)
Whilst I do find it irritating, I don't mind about the scope default so much, but I've certainly run into it (forgetting to specify) a lot.
Mostly because JS is not the only language that I'll be working with at a time, and if I'm dancing between three or four and they have similar syntax, then mistakes creep in.
I'm not saying that it breaks the language, but it definitely is irritating, especially if you're not using a linter.