Hacker News new | past | comments | ask | show | jobs | submit login

That’s because Result is must_use. Nothing to do with async.

In that case, yes, let _ is the usual pattern. But it’s rare that I ever actually want to use that. Typically I either return the error upwards or just unwrap. But if you truly don’t care about whether the operation was successful you can indeed ignore the error.

There are plenty of pain points with Rust but I don’t really think this is one.

Btw, the article you linked argued against the claim that Rust’s syntax is ugly, and instead claims that Rust’s noisyness is due to its semantics, largely in service of performance (which is why production C++ code is often similarly ugly).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: