3 ms·
Destructuring assignment in CoffeeScript helps with this (not globals, I suppose, but well-scoped locals): { use, pipe, get, eq } = R propEq = use(pipe).ov
by Cyranix 12y ago
Destructuring assignment in CoffeeScript helps with this (not globals, I suppose, but well-scoped locals):
{ use, pipe, get, eq } = R
propEq = use(pipe).over(get, eq)
- tracker1 12y agoI'm currently targetting Node 0.11 --harmony for active development, which also has destructuring. It's an option I hadn't considered... I haven't adopted all the ES6 bits, such as es6-style modules in favor of keeping with built-in node patterns, but have been adopting some bits here and there.