News for hackers. Stuff that matters.
Re:Overhead of Returning Optional Values in Java and Rust by Measter on Sunday October 17, 2021 @08:29AM (#28895978)
The `?` operator doesn't desugar to the the `try!` macro, it uses the `Try` trait.

https://doc.rust-lang.org/std/ops/trait.Try.html

Re:Overhead of Returning Optional Values in Java and Rust by brabel on Monday October 18, 2021 @07:22AM (#28904294)
Ah, right... but as far as I know, it's the exact same behaviour, at least currently... reading the docs for the try macro, however, is what made me finally understand the behaviour of the `?` operator (e.g. how it can "magically" convert error types).