let-else - Rust By Example
doc.rust-lang.org
external-link
Rust by Example (RBE) is a collection of runnable examples that illustrate various Rust concepts and standard libraries.

I just discovered this one right after discovering the if-let, this is amazing to be able to do positive and negative pattern matching without using a full blown match statement!

People are complaining that Rust is adding too many features to the language but I have to admit those recent additions are very good… What do you think?

Create a post

All things programming and coding related. Subcommunity of Technology.


This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

  • 1 user online
  • 2 users / day
  • 2 users / week
  • 8 users / month
  • 98 users / 6 months
  • 1 subscriber
  • 302 Posts
  • 2.15K Comments
  • Modlog