3 ms·
Yes, a number of people have suggested introduction of a general do notation (or its analog) instead of usecase-specific async/awayt syntax, but since Rust does
by newpavlov 6y ago
Yes, a number of people have suggested introduction of a general do notation (or its analog) instead of usecase-specific async/awayt syntax, but since Rust does not have proper higher kinded types (and some Rust developers say it never will), such proposals have been deemed impractical.
- pdpi 6y agoIt’s not just HKTs. Figuring out how to handle Fn, FnOnce, FnMut is a whole other can of worms.
- smt1 6y agoI think there were some (related, I think!) proposals here: https://github.com/rust-lang/lang-team/issues/23 https://github.com/rust-lang/lang-team/issues/23 https://github.com/rust-lang/rfcs/issues/3000 https://github.com/rust-lang/rfcs/issues/3000