Rust Keyword Generics Progress Report: February 2023
Rust Keyword Generics Progress Report: February 2023
Posted Feb 24, 2023 22:26 UTC (Fri) by bartoc (guest, #124262)In reply to: Rust Keyword Generics Progress Report: February 2023 by tlamp
Parent article: Rust Keyword Generics Progress Report: February 2023
I'm not convinced async code is so different from sync code that the duplication is justified. After all the whole _point_ of adding state machine style async/await into a language is to allow you to write async code in the same way as sync code without all the overhead of needing to keep track of the entire processor and stack state, the compiler can tell you what state is actually important to keep track of and restore upon running completion code. Like ultimately the synchronous system calls in sync code are _also_ "suspend points" it's just the queues are in different places.
