Skip to content

Comment on Natural Async Programming - samholmes

Comments

Updated the entry with some further examples. You can see how this makes libraries like async (by caolan) unnecessary. Asynchronous functions could just be functions that don't return a value immediately. Other statements that depend on these values being returned by the asynchronous functions would be queued for execution automatically by the interpreter. This makes all async parallel, and async in a series wouldn't even be in the thinking of the programmer.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.