hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.4K
active users

you ever think `async fn` was a mistake?

@mre I actually think async/await is a great thing. I just question specifically `async fn`

kevinmehall

@seanmonstar @mre I think Rust should have used Scala's function syntax with `=` making curly braces optional, and then `async fn` wouldn't add much when you could just write

fn foo() -> impl Future<Output=()> = async {
...
}

@kevinmehall @seanmonstar @mre You could add that to Rust today without the “=“ and it would be fine and good.