News for hackers. Stuff that matters.
Re:Go Replaces Interface{} with 'Any' by andrewjf on Tuesday December 14, 2021 @07:00PM (#29559942)
I would love to use this style but I find myself reverting back to the match syntax.

    match may_fail_who_knows() {
      Ok(success) => {
        do_something_with_success(success)?
      },
      Err(failed) => {
        some_error_processing(failed)
      }
    }
As `do_something_with_success` in a closure can't early return from the function (since it's in a closure), which makes sense, but just annoying to read nested results.

There are no comments on this comment yet.