3 ms·
You're missing the forest for the trees. While in some abstract sense, async/await is monadic, sure, Rust does not have the ability to express the monad abstrac
by steveklabnik 7y ago
You're missing the forest for the trees. While in some abstract sense, async/await is monadic, sure, Rust does not have the ability to express the monad abstraction, and it's unclear if it ever will be able to. Those details are what makes this topic interesting.
- carterschonwald 7y agofrom my previous interactions with the rust years ago and related rust design discussions on their issue tracker,the main barrier seemed to be rooted in the unfortunate "self" trick for how "the type im instantiating a trait with" syntax making higher kinded trait support expressible as a simple extension, This is of course ignoring the related need to also write code parametrized over lifetime variable structure ..
- infinity0 7y agoIt looks like you're missing the forest for the trees. I'm perfectly aware that Rust can't express monads.