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
2
u/showellshowell Dec 23 '11
I totally agree with your sentiment that there is no "odd language out." I have never found two languages that agree on variable scoping; there are too many tradeoffs, and it's natural that different language designers made different design decisions.
Surely there are languages that get variable scoping dead wrong, but I think the majority of mainstream languages, including CoffeeScript, make sane decisions once you understand their philosophy.
There's obviously a spectrum of convenience vs. safety. Convenience and safety aren't always mutually exclusive, but I do think some languages choose sides. Ruby, for example, is a little more fast and loose than Python. I'm not sure exactly where CoffeeScript fits on the spectrum, but there is definitely a philosophy that drives the decisions.