Hacker News new | past | comments | ask | show | jobs | submit login

Except :: doesn't always indicate a static class member.

parent::foo();

The :: is not indicating that the call to the parent be made statically. $this is a reserved variable in classes - $parent or $super should have been as well.




The grandparent has the right sentiment but the wrong language. When you see :: you know you're addressing a specific class and not a namespace.

And since PHP doesn't have any concept of a class-instance there's nothing mucking that up.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: