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'm perplexed by the criticism of shaderFromSource. It seems straightforward to me.
The line that I would have eliminated is this:
That's essentially equivalent to this Python:
I know there's a reason to introduce log, sin, cos, and tan directly into your top level scope--convenience. For me, I go by "Explicit is better than implicit," so I use this style:
It helps that Math is a short word.