|
|
|
|
|
by alongub
4227 days ago
|
|
It's not that JavaScript syntax is difficult. It's that there are some common patterns that repeat themselves so much times. For example, safe object navigation. This code in Spider/CoffeeScript: var x = a?.b?.c?.d;
compiles to something like: var x = typeof a !== "undefined" && a && a.b && a.b.c ? a.b.c.d : void 0;
|
|
[1] http://documentcloud.github.io/underscore-contrib/