Parameter passing
Readings
- Pre-recorded lectures
- Chapter 17 of textbook.
- Class notes on parameter passing.
- Source codes used in class.
- Parameter passing in functional programming
- Evaluation strategy for parameters
- Introduction to Programming Languages, Chapter 20 (Parameter passing).
Topics covered
- Paremeters.
- Formal and actual parameters.
- Positional and keyword correspondences.
- Optional parameters.
- Types of paremeter passing.
- Eager and lazy evaluation.