Hacker News new | ask | show | jobs
by petervandijck 5742 days ago
5.3 has namespaces? Awesome :)
1 comments

Yes, but in true PHP fashion they're just slightly ugly. :)

namespace my\name;

$c = new \my\name\MyClass;

Leave it to PHP to look up to MS-DOS for inspiration.
Ug. I thought you were joking. Now I'm sad for humanity.
Ugly but functional, that's good enough for me :)