by lovemenot · 12y ago · 0 comments
For the sake of argument, if the principles of OOP are: dynamic dispatch; abstraction; subtype polymorphism; and inheritance, what might be the equivalent for Subject-Orientated Programming ?
In my view, a charateristic of SOP must be that data is personal and unique. Every single usage of data specifies a new unique identifier. To read is to interpret: is to record a new ID. Here, identity (x==y) gets broken; so another operator is needed (x~=y).
As an ex philosophy major, immutable state and its implications on identity interest me greatly. I feel like this, and other ideas from FP, could be considered a step toward a so-called Subject-Object Programming paradigm.