Rust Keyword Generics Progress Report: February 2023
Rust Keyword Generics Progress Report: February 2023
Posted Feb 25, 2023 0:34 UTC (Sat) by gmgod (guest, #143864)Parent article: Rust Keyword Generics Progress Report: February 2023
I'm having a hard time understanding how this kind of polymorphism actually solves anything beyond superficial code duplication.
The distinction between red and blue functions doesn't disappear. If anything I'd prefer async functions being automatically callable from a sync context instead of adding purple functions (however compatible with the rest) to do exactly that (the same way const fn can be seamlessly called at runtime).
All I see here is a syntactic distinction atop async code... Maybe, just maybe, don't add the distinction... That way you don't get colors, just inflexion depending on the context...
