2 ms·
> But not destructuring objects into SoA memory layouts is a "principle" No, not really. There are languages that allow inside-out-objects where the "object" i
by corty 5y ago
> But not destructuring objects into SoA memory layouts is a "principle"
No, not really. There are languages that allow inside-out-objects where the "object" is a tuple of (class, index). The class holds a bunch of arrays containing each object's properties at the index-position that the object indicates. Totally destructured, yet holds all the usual OO "principles" like implementation hiding, abstraction, access via objects, etc. https://metacpan.org/pod/Object::InsideOut https://metacpan.org/pod/Object::InsideOut
This is exactly what I meant with "there are no OO principles". Noone has a clear-cut set of those and almost anything can be made to fit some set of "OO principles".