Hacker News new | ask | show | jobs
by rom-antics 1255 days ago
I think the idiomatic way to write that is:

  fn add(x: Option<i32>, y: Option<i32>) -> Option<i32> {
      Some(x? + y?)
  }