Comment

Comment by ljsb

You were pretty close with your hypothetical syntax! You can write:

  let Some(y) = x else { do_stuff(); return };
I think it was a fairly recent addition to Rust.
parent ljsb 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton