Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://www.seventeencups.net/posts/why-if-let/ #6

Open
utterances-bot opened this issue Jan 13, 2021 · 4 comments
Open

https://www.seventeencups.net/posts/why-if-let/ #6

utterances-bot opened this issue Jan 13, 2021 · 4 comments

Comments

@utterances-bot
Copy link

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…

https://www.seventeencups.net/posts/why-if-let/

Copy link

Thank you! This has been very helpful!

Copy link

Thanks very much. It was rather confusing when I saw it in an egui-tetra example.

Copy link

Now that you show the deconstruction part, it begins to make sense. Thanks.

Copy link

Very good article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants