3 ms·
>about how futures-based concurrency spreads into your code through huge amounts of necessary boilerplate (`.and_then(...).and_then(...).and_then(...)`) How is
by coldtea 10y ago
>about how futures-based concurrency spreads into your code through huge amounts of necessary boilerplate (`.and_then(...).and_then(...).and_then(...)`)
How is that more boilerplate than any other way to have concurrency?
- steveklabnik 10y agoAsync/await is commonly suggested as a lighter-weight syntax.
- arianvanp 10y agoDo notation makes this stuff a whole lot more readable (See Haskell). Or Async-await (See C#)
- brandur 10y ago+1. Also, Go's goroutines and channels.
- marcosdumay 10y agoAbout do notation, can't Rust get something similar with macros? (I still didn't get to making macros in it.)
- steveklabnik 10y agoThere is a crate that does it in a duck-typed manner. It's not clear that the stronger typed version can work. We'll see.