4 ms·
It's fascinating how async/await are spreading from C# to other languages like JavaScript and Python. As far as I know, no languages had anything like it befor
by strommen 11y ago
It's fascinating how async/await are spreading from C# to other languages like JavaScript and Python. As far as I know, no languages had anything like it before C# added it in ~2011.
What was the last truly-new language feature that became popular across other languages like this?
- ceronman 11y agoThe idea of using coroutines for asynchronous programming is quite old actually. ML has used it since the 80s [1]. Python itself had it way before C# with Twisted's inlineCallbacks [2]. What C# (actually it was F#) introduced was the specific 'await' and 'async' syntax keywords. Those are being copied in other languages, and they're just sugar over coroutines. [1] http://www.cambridge.org/gb/academic/subjects/computer-science/distributed-networked-and-mobile-computing/concurrent-programming-ml http://www.cambridge.org/gb/academic/subjects/computer-scien... [2] http://blog.mekk.waw.pl/archives/14-Twisted-inlineCallbacks-and-deferredGenerator.html http://blog.mekk.waw.pl/archives/14-Twisted-inlineCallbacks-...
- adultSwim 11y agoIt's my understanding that this came out of the programming language research community and is just now trickling into production languages (just like generics did). We're basically just getting the up to speed with ML from the 80's.
- est 11y agoIn python world, every networking programming trick trace back to Twisted.