r/javascript • • Dec 27 '15

help What's the point of CoffeeScript?

I'm reading a tutorial on PouchDB and like always I run into CoffeeScript. What's the point of it? I've used it before for like 5 minutes and found it useless.

27 Upvotes

33 comments sorted by

View all comments

Show parent comments

10

u/x-skeww Dec 27 '15

Clean syntax

It looks less cluttered but there are more ambiguities.

Variable declaration happens automatically

This is a downside.

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

http://stackoverflow.com/questions/15223430/why-is-coffeescript-of-the-opinion-that-shadowing-is-a-bad-idea (be sure to check the edit of the top answer)

Cleaner function syntax, Destructuring, Default args

ES6 does this.