4 ms·
> Isn't AOP far more general than what you propose there? Yes, definitely AOP provides much more freedom in injecting behavior to other parts of the code - it
by asavinov 10y ago
> Isn't AOP far more general than what you propose there?
Yes, definitely AOP provides much more freedom in injecting behavior to other parts of the code - it is its main goal while COP has different goals.
> you would need to duplicate a CCC e.g. logging in each distinct 'parent'
No, because in COP, "Parents are Shared Parts of Objects" [1], that is, a parent may have many children. Inheritance in COP is inclusion. If a parent implements a method then it will be reused by all its children.
[1] http://bibliography.selflanguage.org/_static/parents-shared-parts.pdf http://bibliography.selflanguage.org/_static/parents-shared-...