Was async fn a mistake? This stabilization PR for async fn in traits made me think: was async fn in Rust a mistake? I mean, I dunno. Maybe it wasn’t. But play along for a moment. By the way, I don’t...
I totally get the = async { body } (and I think I would prefer it for everything since it makes one liner like fnadd(a: i32, b: i32) ->i32 = a+b much nicer and compact). I can also get the "ignore associated type” part. But I fail to see why removing the impl in ->implFuture is useful.
I totally get the
= async { body }
(and I think I would prefer it for everything since it makes one liner likefn add(a: i32, b: i32) -> i32 = a+b
much nicer and compact). I can also get the "ignore associated type” part. But I fail to see why removing theimpl
in-> impl Future
is useful.