News for hackers. Stuff that matters.
Re:Composing Programs – An introduction to programming in th... by jakear on Tuesday July 31, 2018 @12:35PM (#17654606)
That’s a strange decision with regard to variable definitions, but not really a “scoping” abnormality. As in: that’s the scope you’d expect from a global variable, but not the syntax you’d expect to get you a global variable. Anyways, a base VS Code installation will throw a warning about that.

The other things are also not scoping. I’m not arguing JS is consistent, I’m just saying people should stop complaining about its scoping then offering python as a solution.

There are no comments on this comment yet.