4 ms·
"Imperative and object oriented are two different things" - Martin Odersky. An object is just a something that implements an interface and an interface is just
by discreteevent 15y ago
"Imperative and object oriented are two different things" - Martin Odersky. An object is just a something that implements an interface and an interface is just a collection of functions. It may or may not have mutable state. That's why OO and functional are really just two sides
of the same coin. I think that tightly associating a set of functions with data is still a very good way to organize programs for the same reasons that it always was. Its the over use of the imperative bit of many languages that caused all the problems.