News for hackers. Stuff that matters.
Re:Rust Survey 2021 Results by estebank on Wednesday February 16, 2022 @05:24AM (#30358280)
It's more like

  let v = match x {
    Ok(o) => o,
    Err(e) => return Err(e.into()),
  };
> That feels like something that could be done with a macro.

Indeed. It used to be a macro called try!.

Re:Rust Survey 2021 Results by dgellow on Wednesday February 16, 2022 @07:51AM (#30359354)
Ah, thanks for the correction, that's better yes