https://www.seventeencups.net/posts/why-if-let/
Opened this issue · 4 comments
utterances-bot commented
Why Did Rust Pick the 'If Let' Syntax? - Joe Clay
One of my favourite features of Rust is that it has excellent support for pattern matching. This is usually done through match expressions, but there is also a shorter syntax that can be used if you only need a single branch, which is called if let.
If yo…
Spoonbender commented
Thank you! This has been very helpful!
oosubhisara commented
Thanks very much. It was rather confusing when I saw it in an egui-tetra example.
nsengupta commented
Now that you show the deconstruction part, it begins to make sense. Thanks.
gernotpokorny commented
Very good article.