December 2021
Beginner
840 pages
47h 29m
English
Dynamic scoping was used in McCarthy’s original version of Lisp (more on this in Section 6.10) as well as in APL and SNOBOL4. Scheme, a dialect of Lisp, adopted static scoping.2 Some languages, including Perl and Common Lisp, leave the scoping method up to the programmer. However, Perl gives the programmer a finer level of control over scope. Control of scope is done on the variable level, rather than the program level. Instead of setting the method of scoping for the entire program, Perl enables the programmer to fine-tune which variables are statically scoped and which are dynamically scoped. The provisions for scope in Common Lisp are similar. Qualifiers, including private, public, and ...
Read now
Unlock full access