4 ms·
We are talking explicitly about an interface allowing an implementation that can be swapped out for testing. Not every program ever written is organized like th
by solipsism 9y ago
We are talking explicitly about an interface allowing an implementation that can be swapped out for testing. Not every program ever written is organized like this, but those that are are making use of polymorphism and therefore a bit of OOP.
- rpedela 9y agoThank you for adding some nuance. So then would OpenGL be an OOP API?
- KirinDave 9y agoPolymorphism is not OOP, although OOP designs may be polymorphic. Many FP approaches leverage polymorphic functions heavily (and in fact in most they use a parametric style of polymorphism which provides a lot more structure than the OO-family ad-hoc polymorphism).