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
5
u/iopq Jul 26 '13
Yeah, it's not a problem in practice because people bind their "vars" to arguments in do so they have a closure in a closure
which is a silly thing to do instead of just allowing you to declare vars. Is typing var so hard?