r/programming • u/zumpiez • Dec 22 '11
The Problem with Implicit Scoping in CoffeeScript
http://lucumr.pocoo.org/2011/12/22/implicit-scoping-in-coffeescript/
83
Upvotes
r/programming • u/zumpiez • Dec 22 '11
View all comments
Show parent comment
4
u/munificent Dec 23 '11
OK, that's an interesting way to look at it. I still like explicit variable declarations because I like to know how far up I have to read to understand the extent of a variable. Once I see a
varI know I don't have to consider anymore surrounding scopes.That makes sense. I generally aim for trying to minimize the amount of context a person needs to have in order to understand code so I lean towards composability and isolation but your angle is valid too.
True, but (for better or worse!) I rarely find myself reading an entire source file from top to bottom.