r/programming • • Jul 25 '13

CoffeeScript's Scoping is Madness

http://donatstudios.com/CoffeeScript-Madness
207 Upvotes

315 comments sorted by

View all comments

Show parent comment

5

u/yogthos Jul 25 '13

I don't know how many of these apply to Coffeescript, but there are certainly things that can be improved on JavaScript.

Here's a few reasons I use ClojureScript:

  • proper namespacing support
  • libraries
  • sane variable hoisting
  • arbitrary keys in maps
  • persistent data structures
  • comparison by value, including complex data structures, directly facilitated by the above
  • much simpler rules and syntax
  • multiple arity functions
  • named parameters
  • uniform iteration mechanics for all native types
  • proper lexical scope for clousres
  • lazy sequences
  • macros