Re:Two years of Rust
by steveklabnik on Monday May 15, 2017 @05:14PM
(#14345184)
Async/await is commonly suggested as a lighter-weight syntax.
Well, isn't async/await complementary to futures?
Oh, it is, it just makes them a lot easier to use. The compiler does method restructuring magic behind the scenes to build the necessary state machines. Everything gets a lot easier to understand.
Do notation makes this stuff a whole lot more readable (See Haskell). Or Async-await (See C#)
Re:Two years of Rust
by marcosdumay on Monday May 15, 2017 @05:57PM
(#14345503)
About do notation, can't Rust get something similar with macros? (I still didn't get to making macros in it.)
Re:Two years of Rust
by steveklabnik on Monday May 15, 2017 @06:33PM
(#14345757)
There 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.
How is that more boilerplate than any other way to have concurrency?