4 ms·
Async does have to be hard, sometimes, at least right now. Iterators, closures, selects, and more are IMHO hard, or absent, or not intuitive. I know these are b
by jph 4y ago
Async does have to be hard, sometimes, at least right now. Iterators, closures, selects, and more are IMHO hard, or absent, or not intuitive. I know these are being worked on-- thank you to the language developers.
- drogus 4y agoI think it depends on what you call hard. Things you listed usually make things unergonomic, not necessarily hard. You can still do a lot of stuff with async Rust, but it often requires a lot more boilerplate and compromises. Granted, it can be hard, but I wrote a lot of async code, including async streams, traits, saving `Future`s for later execution etc and usually you don't need anywhere near as much complexity as was presented in the first post.