Haskell CS 421 LogoCS 421 — Programming Languages



Today we talk about the Dark Side of the Force: Objects. If you embed a state inside a closure, you get something that behaves curiously like an object. We will use this to implement objects and inheritance in two ways, and talk a bit about how it would be done in “real life”.

The slides and lecture will show OCaml code, and in class we’ll show you how to do this in Python.



Further Reading