This problem is limited to a single file since each file compiles into an immediately invoked function. From what I've seen its not really a problem in practice.
Its not that typing var is so hard, its that I'm a forgetful person and forgetting to type var can really bite you.
I think the reason that it isn't a problem in practice is because modules/files do not grow large. In the one app I've written (both server + client in cs) very few of the files even had 'global' variables, the majority were just classes and functions.
View all comments
Show parent comment
0
u/a_marklar Jul 26 '13
This problem is limited to a single file since each file compiles into an immediately invoked function. From what I've seen its not really a problem in practice.