Re:Object Oriented Mathematics (1995) [pdf]
by Animats on Saturday December 19, 2015 @02:26AM
(#10762945)
The key is "forall f". That is, this must hold for all functions. In a constructive world, the set of all functions is finite. There's an existing set of known functions on the object. Any new functions must be created using those functions, so if the known functions have that property, so must functions built from them.
The key idea is that new functions can't look inside the object directly. Think private data and function members in C++. So two objects may have different internal representations, but if the exported functions won't let you distinguish them, you can treat them as equal.
Re:Object Oriented Mathematics (1995) [pdf]
by chris_wot on Saturday December 19, 2015 @07:16AM
(#10763377)
So if the result of all values of x of the function f and g then the functions f and g are equivalent. Is that correct? If so, then does the theory handle encapsulation only?
The key idea is that new functions can't look inside the object directly. Think private data and function members in C++. So two objects may have different internal representations, but if the exported functions won't let you distinguish them, you can treat them as equal.