News for hackers. Stuff that matters.
Re:New Features in PHP 5.6 by semerda on Friday January 17, 2014 @06:51PM (#7079304)
Does anyone else here find the PHP namespace format horrible and unlike the standard dot notation?
Re:New Features in PHP 5.6 by wvenable on Friday January 17, 2014 @06:53PM (#7079315)
I hated it till I started using it, now I don't mind. Dot was never used in PHP because it's the string concat operator. PHP needs a unique operator for namespaces because the types of symbols (is it a namespace, class, interface, etc) aren't known at compile time (unlike Java, C#, etc).
Re:New Features in PHP 5.6 by coldtea on Saturday January 18, 2014 @09:29AM (#7081065)
>Dot was never used in PHP because it's the string concat operator.

So how about them using the -> operator? Most languages that use . for class method access also reuse it for namespacing.