Re:“Node.js is one of the worst things to happen to the soft...
by int_19h on Tuesday August 23, 2016 @01:27AM
(#12341597)
Callbacks are ugly when you have to deal with them directly. But a little bit of syntactic sugar to capture the current continuation as a callback - such as C# await, or the now-repurposed yield in Python - makes it very easy and straightforward to write callback-based async code.
[ Parent
| on HN ]
Re:“Node.js is one of the worst things to happen to the soft...
by davidjnelson on Tuesday August 23, 2016 @02:54AM
(#12341875)
Babel and regenerator let you use await in es/js too.
Re:“Node.js is one of the worst things to happen to the soft...
by flamedoge on Tuesday August 23, 2016 @02:56AM
(#12341881)
Python does have await from asyncio
Re:“Node.js is one of the worst things to happen to the soft...
by int_19h on Wednesday August 24, 2016 @03:59PM
(#12354769)
Apparently, I wasn't paying as much attention to the state of async in Python 3.5 as I should have. Looks like they actually have the most featureful implementation of that right now, complete with async for all constructs where it can be sensibly implemented and provide some benefits (like for-loops and with-blocks).