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 back mention of local scoping with let blocks #14566

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/manual/variables-and-scoping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The constructs introducing such blocks are:

Notably missing from this list are
:ref:`begin blocks <man-compound-expressions>` and :ref:`if blocks <man-conditional-evaluation>`, which do
*not* introduce new scope blocks.
*not* introduce new scope blocks. Since the ``begin`` construct does not introduce a new block, it can be useful to use the zero-argument ``let`` to introduce a new scope block without creating any new bindings.

Certain constructs introduce new variables into the current innermost
scope. When a variable is introduced into a scope, it is also inherited
Expand Down