Skip to content

Add readability note about shadowing in ch03-01#4726

Open
NMJ27 wants to merge 1 commit intorust-lang:mainfrom
NMJ27:shadowing-readability-note
Open

Add readability note about shadowing in ch03-01#4726
NMJ27 wants to merge 1 commit intorust-lang:mainfrom
NMJ27:shadowing-readability-note

Conversation

@NMJ27
Copy link
Copy Markdown

@NMJ27 NMJ27 commented Apr 20, 2026

This adds a short note to the shadowing section to clarify a readability tradeoff.

Shadowing is often useful for short, local transformations, but it can become harder to follow when overused across larger or nested scopes. Since the section includes an example of shadowing across scope, this note briefly highlights that readability concern for learners.

@NMJ27 NMJ27 changed the title Add readability note about shadowing Add readability note about shadowing in ch03-01 Apr 21, 2026
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