Why not including async/await ?

Tobias Pankrath tobias at pankrath.net
Fri Sep 24 10:19:35 UTC 2021


On Friday, 24 September 2021 at 03:16:36 UTC, zoujiaqing wrote:
> Swift 5.5 including async/await.
> C# Support it.
> TypeScript support it.
> Kotlin support it.

Python and C# went the generator => async route and if the 
compiler can automatically rewrite your code to state machines 
async becomes a runtime feature.

That rewriting (ala C++ coroutines?) is the useful/enabling thing 
I'd see usefull for D. Would wonderfully interop with ranges as 
well.




More information about the Digitalmars-d mailing list