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
3
u/strager Dec 23 '11
I'm sure you're unaware: the API of ctx is WebGL, and the author probably only calls these functions once, in this exact method. This function is the abstraction which keeps the rest of the code nice and clean. Anyone who has done any OpenGL development knows to wrap up the whole "load a shader, give me the GLint" mess into a function. It makes no sense to wrap every OpenGL function call just to make one method a little nicer.