Re:Goodbye, Object Oriented Programming
by Zababa on Monday January 24, 2022 @01:42PM
(#30061990)
It is actually, and it is not the basis for almost everything. Functional code is usually declarative instead of being imperative. SQL is declarative, not imperative. The vast majority of the code written is imperative. It uses "if" instead of polymorphism for example, it doesn't rely on message passing or encapsulation or anything like that. You can't just ignore a paradigm and say that the second one is the most used.
[ Parent
| on HN ]
OOP is a strict superset of imperative. You don't even need an object-oriented language to do object-oriented programming -- just an imperative one.