News for hackers. Stuff that matters.
Re:Where Everything Went Wrong: Error Handling and Error Mes... by conradludgate on Friday February 19, 2021 @05:28AM (#26191528)
You can do something like that

``` let x = Some(1); let x = match x { Some(x) => x, None => return, };

assert_eq!(x, 1); ```

Re:Where Everything Went Wrong: Error Handling and Error Mes... by Zababa on Friday February 19, 2021 @06:41AM (#26192065)
HN doesn't uses Markdown syntax for formatting: "Text after a blank line that is indented by two or more spaces is reproduced verbatim. (This is intended for code.)" https://news.ycombinator.com/formatdoc