Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Without let-else, you could write that as:

    let foo_unwrapped = match foo {
      Some(foo_unwrapped) => foo_unwrapped,
      None => return,
    };
Not as pretty, but you don't have to unwrap.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: