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

Add slide reviewing irrefutable patterns #2608

Merged
merged 3 commits into from
Feb 6, 2025
Merged

Conversation

randomPoison
Copy link
Collaborator

We already talk about irrefutable patterns in day 1, but only briefly. I always review the concept at the beginning of the pattern matching section to refresh students' memories, so this is just formalizing that review into a slide at the beginning of the section. I also use this opportunity to introduce _ and .., which should help students understand that patterns can do more than just directly destructure values.

@djmitche djmitche self-requested a review January 31, 2025 17:34
@randomPoison randomPoison merged commit 553e3c5 into main Feb 6, 2025
37 checks passed
@randomPoison randomPoison deleted the legare/pattern-review branch February 6, 2025 00:16
michael-kerscher pushed a commit to michael-kerscher/comprehensive-rust that referenced this pull request Feb 7, 2025
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

Successfully merging this pull request may close these issues.

3 participants