3 ms·
> 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 equi
by jcelerier 5y ago
> 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.5372&rep=rep1&type=pdf 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.