15-212: Principles of Programming |
We introduce declarations which evaluate to environments. An environment collects a set of bindings of variables to values which can be used in subsequent declarations or expressions. We also discuss the rules of scope which explain how references to identifiers are resolved. This is somewhat tricky for recursive function declarations.
[ CS 15-212 Home page | schedule | language | assignments | handouts ]