7 ms·
Coffeescript optional parenthesis and much shorter syntax for closures are a big help in diminishing the noise, which is crucial to make a DSL. Without these, s
by DanielRibeiro 16y ago
Coffeescript optional parenthesis and much shorter syntax for closures are a big help in diminishing the noise, which is crucial to make a DSL. Without these, some DSLs become so cumbersome that they are in fact unwieldy.
For instance: nobody uses nested closure[1] techniques in java, because anonymous classes are too much of a verbose implementation of closures, not to mention that they can only close over final variables, making it even more cumbersome
[1] http://my.safaribooksonline.com/book/software-engineering-and-development/ide/9780132107549/internal-dsl-topics/nestedclosure_ http://my.safaribooksonline.com/book/software-engineering-an...