Re:Rust: A Critical Retrospective
by ntoskrnl on Thursday May 19, 2022 @11:41AM
(#31436154)
I do this too, with a different spin on it:
I was typing it out so often I made editor aliases `lmo` and `lmr` for Option and Result
[ Parent
| on HN ]
Re:Rust: A Critical Retrospective
by veber-alex on Thursday May 19, 2022 @11:47AM
(#31436224)
let me introduce you to the famous '?' operator.
The code above can be written as:
let foo = foo()?;