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

Move the "Trait Bounds" slide right after "Generic Functions". #2589

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

andriyDev
Copy link
Contributor

The "Generic Data Types" slide now uses trait bounds, which makes it very confusing to explain. (e.g., "ignore this trait bound stuff while I explain why we need to stutter to describe the generic args on an impl block").

Also in the "Generic Functions" slide, the speaker notes talks about how we essentially need to treat the generic args as black boxes - this is probably more important to address then talking about all the ways you can make things generic.

The "Generic Data Types" slide now uses trait bounds, which makes it very confusing to explain. (e.g., "ignore this trait bound stuff while I explain why we need to stutter to describe the generic args on an impl block").

Also in the "Generic Functions" slide, the speaker notes talks about how we essentially need to treat the generic args as black boxes - this is probably more important to address then talking about all the ways you can make things generic.
Copy link
Collaborator

@randomPoison randomPoison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good change. Even before the changes to the generic data types slide I had been thinking it'd be better to cover trait bounds first and then go over generic data types and generic trait. I think this is a good change for the flow of the slides.

@fw-immunant
Copy link
Collaborator

Agreed; students are often champing at the bit to ask how they can limit generics to only certain sets of types, and usually I have to tell them to wait a few slides before we get there.

@randomPoison randomPoison enabled auto-merge (squash) January 30, 2025 01:22
@randomPoison randomPoison merged commit 347de61 into google:main Jan 30, 2025
35 checks passed
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