Post #3883195
2026-07-01 08:21 UTC
@dseguy@phpc.social It's all about knowledge and coupling.
For `C` to call `A`, it needs to know `A` well enough to decide it _really_ wants to call that particular ancestor behavior instead of its direct parent.
This level of knowledge (coupling) is quite bad, and it's widely accepted that inheritance is bad for this, right?
Honestly, the fact the language makes calling arbitrary ancestors behavior with shared state (because if the method contains `$this` it will resolve to C) it is a good thing IMO :)
Replies (0)
No replies.