Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge...
by anonymoushn on Thursday August 06, 2020 @02:05PM
(#24073720)
They really do though. In the modal case you would just write the same code as in js but without all the extra keywords. If you need fanout you'd call some special function to do that, like you do now.
This is an example for something that might come up in Javascript, using async/await:
Error handling is just try/catch.Note that you generally have no control over most of these function being asynchronous. Threads or coroutines do nothing to help you write straightforward code when all your libraries are based on fine-grained callbacks/promises. Writing out that chain of dependencies in CPS would be a nightmare.