2 ms·
Great points all around, thanks for the reply. Mathematics encapsulates at proof level. I don't have to care how Pythagoras's theorem may be proven, I know it
by pacala 11y ago
Great points all around, thanks for the reply.
Mathematics encapsulates at proof level. I don't have to care how Pythagoras's theorem may be proven, I know it holds for every right triangle and I can build from there. It's a device for encapsulating the proof state space search, saving time when building more complex theories.
Re: abstraction, with any name [function] comes a set of properties we know they are true, either explicitly specified or implicitly derived from common sense logic. I don't have to care how the sort function is implemented, I only have to know that given an input, it produces an output in a certain relation with the input. From there, I can build more complex programs faster than if I had to write the sort function myself.
Once there are functions with a specification, logically speaking one can freely substitute one for another, as long as the specs are in the correct logical implication relation.
Excuse me if I'm a bit baffled of what exactly the intellectual content of OOP is.