Re:Node v8.0.0 Released
by steve_adams_86 on Tuesday May 30, 2017 @04:23PM
(#14448243)
You can make it yourself fairly easily I guess:
It isn't ideal but it's a little cleaner
[ Parent
| on HN ]
+1. I'm a big fan of top level function binds to remove boilerplate and keep code readable:
const log = console.log.bind(console),
query = document.querySelector.bind(document),
queryAll = document.querySelectorAll.bind(document);You don't need to bind `console.log` by the way (at least not in any recent version of Node.js or browsers).
await all([fn1, fn2]) ;)
i wonder when we will get s-expressions for function calls (awaitAll [fn1, fn2])
Re:Node v8.0.0 Released
by doublerebel on Tuesday May 30, 2017 @06:44PM
(#14449167)
Just write (iced) coffeescript, s-exp are totally valid there:
https://github.com/nextorigin/riemann-query-parser/blob/mast...