you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 8 months ago

Most of the times you can just let ... else (which is basically a custom ? if you need if let ... else it's because you actually need 2 branching code paths. In any other language you also do if ... else when you have 2 different code branches. I don't see why this is a rust-specific issue.

  • source
  • parent