GNU bug report logs -
#66756
30.0.50; [PATCH] Improve discussion of 'let' in Elisp Introduction manual
Previous Next
Reported by: Jim Porter <jporterbugs <at> gmail.com>
Date: Thu, 26 Oct 2023 05:56:01 UTC
Severity: normal
Tags: patch
Found in version 30.0.50
Fixed in version 29.2
Done: Jim Porter <jporterbugs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> +The @code{let} special form provides a way to confine your variables
> +to a particular section of your code (in computer science jargon, a
> +``scope''). @code{let} creates a name for a @dfn{local variable} that
> +overshadows any use of the same name outside the @code{let} expression
> +(we call this ``binding'' the variable). This prevents any accidental
> +usage of these variables outside of the @code{let} expression.
This is one of several reasons to use `let'.
Others are
* To compute a value once and use it more than once.
* To create a loop index variable.
* For special variables, to bind them si as to control the behavior
of other code.
Should all of them be mentioned in this node? I am not sure;
that is a pedagogical question. But this node shouldn't assert
that one reason is the only reason.
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
This bug report was last modified 1 year and 229 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.