|
|
|
|
|
by vlovich123
886 days ago
|
|
They’re painful in all contexts because of function coloring. They’re slightly less painful in Go and JS because there’s a single opinionated async runtime built in. In Rust they have yet to standardize a bunch of stuff that would remove the pain: async traits in std instead of each runtime having their own, a pluggable interface so that async in code doesn’t have to specify what runtime it’s being built against potentially an effect system to make different effects composable more easily (eg error effects + async effects) without needing to duplicate code to accomplish composition Keyword generics as the current thing being explored instead of an effect system to support composition of effects With these fixes async rust will get less annoying but it’s slow difficult work. |
|