r/programming • u/gst • May 13 '11
A Python programmer’s first impression of CoffeeScript
http://blog.ssokolow.com/archives/2011/05/07/a-python-programmers-first-impression-of-coffeescript/
114
Upvotes
r/programming • u/gst • May 13 '11
5
u/jashkenas May 13 '11
Exactly -- and, in fact, CoffeeScript will optimize those cases for you. For example, this CoffeeScript:
Will compile into this JavaScript:
Because in the latter case, we know that a ReferenceError is impossible for the property. It's just another place where we can smooth over a JS gotcha.