This discipline of sharing names among nested
definitions is called [...]. Critically, the inner functions have
access to the names in the environment where they are defined (not where they
are called).
Answer
lexical scoping
Tags
#python #sicp
Question
This discipline of sharing names among nested
definitions is called [...]. Critically, the inner functions have
access to the names in the environment where they are defined (not where they
are called).
Answer
?
Tags
#python #sicp
Question
This discipline of sharing names among nested
definitions is called [...]. Critically, the inner functions have
access to the names in the environment where they are defined (not where they
are called).
Answer
lexical scoping
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it This discipline of sharing names among nested
definitions is called lexical scoping. Critically, the inner functions have
access to the names in the environment where they are defined (not where they
are called).
Original toplevel document
1.6 Higher-Order Functions ed.
Lexical scope. Locally defined functions also have access to the name
bindings in the scope in which they are defined. In this example,
sqrt_update refers to the name a , which is a formal parameter of its
enclosing function sqrt . <span>This discipline of sharing names among nested
definitions is called lexical scoping. Critically, the inner functions have
access to the names in the environment where they are defined (not where they
are called).
We require two extensions to our environment model to enable lexical scoping.
Each user-defined function has a parent environment: the environment in
which it was defined. When a us
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.