Potential midterm exam topics (and study checklist)
General Concepts
- types:
- static vs. dynamic typing
- type safety
- type inference
- terms with no generally-agreed on definition
("strongly typed language")
- polymorphism
- functional vs. imperative languages; functional subset of language
- higher-order functions
- parameter passing:
- call by value
- call by result
- call by value/result
- call by reference
- call by name; lazy evaluation; thunks
- aliasing
- closures
- equality vs. identity (and when it matters)
- compile time vs. run time
- recursion; tail recursion
- applicative vs. normal order evaluation
Haskell
- functions, including higher-order functions, currying, and
anonymous functions
- lexical scoping
- types: polymorphic types; type inference, declarations;
user-defined types, including recursive types; type classes; inheritance
- referential transparency
- lazy evaluation; infinite data structures
- pattern matching
- list comprehensions
- monads; I/O in Haskell
Scheme
- constructing and navigating list structures
- scoping issues (lexical scoping, global variables, parameters, let,
let*, environments)
- function definition; anonymous functions; special forms
- recursion; tail recursion
- eval and apply
- programs as data
- metacircular interpreter
- side effects in Scheme
Non-Topics
These topics won't be on the midterm (but may be on the final):
- Scheme macros; functions with variable number of arguments; improper
lists; quasi-quoting
- lexical vs. dynamic scoping
- exception handling