Comment

Comment by Sharlin

There should really be a more real-world example, the current code (and your alternative version) is just redundant and equivalent to

  fn try_option_some() -> Option<u8> {
      Some(1)
  }
parent Sharlin 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton