News for hackers. Stuff that matters.
Re:The Repeated Deaths of OOP (2015) by chriswarbo on Sunday June 06, 2021 @08:22AM (#27412657)
If this is the essence of OOP, would you consider modules/existential-types in StandardML to be OOP? As a followup, what about OCaml (is that "more OOP"?)
Re:The Repeated Deaths of OOP (2015) by jcelerier on Sunday June 06, 2021 @10:02AM (#27413222)
ML modules are definitely OO
Re:The Repeated Deaths of OOP (2015) by c-cube on Sunday June 06, 2021 @04:37PM (#27416093)
See, that's just ridiculous and shows how undefined and vague "OO" is. The only relevant feature there is encapsulation, that most languages provide in some way. How is that OO?

I vote for just not using this term anymore and talk about class based langusges or prototype languages or whatever.

Re:The Repeated Deaths of OOP (2015) by jcelerier on Monday June 07, 2021 @03:08AM (#27419869)
> The only relevant feature there is encapsulation, that most languages provide in some way. How is that OO?

PL researches seem to have no trouble finding equivalences between ML modules and OO :

https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.53...

My personal opinion which tries to be as general as possible to encompass most definitions is that OO just means that semantic entities can bind a set of named values with a set of named operations / functions / methods / whatever you call them.

    struct foo {
      int bar;
      void (*compute)(int x, int y); 
    };
is also OO.
Re:The Repeated Deaths of OOP (2015) by mypalmike on Sunday June 06, 2021 @05:28PM (#27416504)
The problem isn't that the term is poorly defined. It's that it's widely misused. Dynamic dispatch (basically "inheritance") is what most experts claim to be the defining feature necessary to claim OO.