#python #sicp
the scope of a local name is limited to the body of the
user-defined function that defines it. When a name is no longer accessible, it
is out of scope.
If you want to change selection, open document below and click on "Move attachment"
1.3 Defining New Functionsould be confused with the parameter x in
sum_squares . Critically, this is not the case: the binding for x in
different local frames are unrelated. The model of computation is carefully
designed to ensure this independence.
We say that <span>the scope of a local name is limited to the body of the
user-defined function that defines it. When a name is no longer accessible, it
is out of scope. This scoping behavior isn't a new fact about our model; it is a
consequence of the way environments work.
1.3.5 Choosing Names
The interchangeability of names does not imply t Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details