Hacker News new | ask | show | jobs
by estebank 1578 days ago
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!.

1 comments

Ah, thanks for the correction, that's better yes