News for hackers. Stuff that matters.
Re:Where Everything Went Wrong: Error Handling and Error Mes... by tiddles on Friday February 19, 2021 @05:27AM (#26191519)
The most common time this comes up for me is trying to use continue/break if a value is None/Err :

  loop {
    let thing = match foo() {
      Some(bar) => bar,
      None => continue,
    }
  }
Yet I still always first try to put the continue in an unwrap_or_else first..

There are no comments on this comment yet.