|
|
|
|
|
by betterunix2
2665 days ago
|
|
In this context I think it refers to mathematical objects, since the dependencies can be between either values or types in either direction (values to values, types to types, types to values, values to types). Also, lexical closures in a functional language are "classes" from the OO setting, so it is natural to implement classes if you want them; see e.g. OCaml. What you rarely see in the functional setting are common OO design patterns, because many of those patterns are unnecessary or awkward in functional languages. |
|
That is, objects and closures can both be implemented in terms of the other, if your language doesn't happen to offer both.