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 slide on blocks to beginning of control flow section #2598

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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.

1 participant