3 ms·
> Consider the "try!/?" pseudo-macro from Rust. On Rust, try! is not a pseudo-macro, it's an actual macro (which could be defined by anyone, since it uses only
by cesarb 8y ago
> Consider the "try!/?" pseudo-macro from Rust.
On Rust, try! is not a pseudo-macro, it's an actual macro (which could be defined by anyone, since it uses only the public API for Result and From). Go to https://doc.rust-lang.org/std/macro.try.html https://doc.rust-lang.org/std/macro.try.html and click on the [src] link at the top to see its current definition.
- platinumrad 8y agoI called it a pseudo-macro because while "try!" is a macro, its usage is discouraged in favor of "?", which is an operator.