Stefan Fischerländer’s Blog One Blog Is Not Enough

PHP namespace separator

I don’t want to start a Perl vs. PHP flame here, especially when both languages are heading so slooowly towards their version 6. But I just learned that there will at last be a namespace support soon(?) in PHP. And guess what the separator string will be … Yes, you’re right, it’s “::”. For a Perl programmer like me this is a pleasant looking choice. I hope PHP will get the long missing namespace support soon; after all I’m about to start two brand-new PHP projects at the very moment.

2 Responses to “PHP namespace separator”

  1. Christian says

    better than a previous suggestion, the backslash. There are not too many choices for separators left, :: is also used for static method calls and static property access. ;)

  2. Einfach nur schön says

    [...] versteh ich nicht ganz. Bei mehr als 5.000 Funktionen im globalen Namensraum und immer noch keinem Namespace-Mechnanismus, ist das doch [...]

Leave a Reply