Static methods have a long history in OOP. Just because it operates at the level of the class without referencing any details of a specific instance doesn't mean it's not tied to the class. | [reply] |
Alright then. I think I still wouldn't want to do this though, but merely out of maintainability issues. Foo::bar and Foo->bar are not the same, and I wouldn't expect them to be. After all, if you'd want to make a method that accepts an instance as first argument as the invocant, it wouldn't work anymore.
Ordinary morality is for ordinary people. -- Aleister Crowley
| [reply] |