Skip to content

Conversation

@randomPoison
Copy link
Collaborator

I think it'd be good to move the slides on blocks and scopes to the beginning of the control flow section. This allows us to introduce a couple of core concepts that are common to all control flow concepts (returning values from blocks and scoping rules). I think this'll then make it easier for students to understand how to return values from the other control flow constructs. I think the way we currently introduce it with if/else is harder for students to understand, and I think the slides on blocks demonstrates it better.

This PR currently looks like I'm moving two slides to the beginning of the section, but I also have #2596 up which proposes to remove the shadowing slide, so my goal is to have just a single slide on blocks at the beginning of the control flow section.

@djmitche djmitche self-requested a review January 31, 2025 17:33
Copy link
Collaborator

@djmitche djmitche left a comment

Choose a reason for hiding this comment

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

Good idea!

@randomPoison randomPoison merged commit ca137b4 into main Feb 6, 2025
37 checks passed
@randomPoison randomPoison deleted the legare/move-blocks-slide branch February 6, 2025 17:29
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