r/programming • • Dec 22 '11

The Problem with Implicit Scoping in CoffeeScript

http://lucumr.pocoo.org/2011/12/22/implicit-scoping-in-coffeescript/
83 Upvotes

116 comments sorted by

View all comments

Show parent comment

2

u/AmaDiver Dec 23 '11

Just how is this meant to simplify the work of a programmer?

I'm not being snarky: have you programmed in CoffeeScript? I have literally never had any of the issues described in this thread.

7

u/mitsuhiko Dec 23 '11

Considering how hard it is to pick up this error in many cases I would not be surprised if you did cause it at one point in a larger file without noticing.

5

u/dmpk2k Dec 23 '11

I have, and I have.

There's no nice way to say this: CoffeeScript's scoping is broken, and I deeply question the competence of its author as a result. There's a history of languages learning the hard way not to conflate declaration and assignment, so what does CS do? Try to outdo all the original mistakes in terribleness.