News for hackers. Stuff that matters.
Re:An Exceptional Change in PHP 7.0 by wvenable on Monday October 05, 2015 @06:35PM (#10335513)
PHPs design and grammar precluded using any of the other existing operators. The backslash is really the best choice and in practice it works pretty well. The actual debate on the separator choice was very very very long.
Re:An Exceptional Change in PHP 7.0 by sarciszewski on Monday October 05, 2015 @08:44PM (#10336073)
Yeah, and also: Who gives a shit? It's the convention they chose, just adapt to it and get over it, or program in a different language.

People who like to complain about PHP are rarely the same people who use it every day.

Re:An Exceptional Change in PHP 7.0 by deckar01 on Monday October 05, 2015 @10:05PM (#10336357)
I have to use PHP every day and I rarely go a day without complaining about it.
Re:An Exceptional Change in PHP 7.0 by sarciszewski on Monday October 05, 2015 @10:21PM (#10336401)
You're the exception, not the rule.

I mostly hear C/C++, Ruby, Python, etc. devs complain about PHP. Very rarely actual PHP developers.

And typically, their complaints are less of the moan-ass "waaah, they use a \ for namespace separation" and more "ugh, why don't they disabled emulated prepared statements by default"?

Only one side is constructive.

Re:An Exceptional Change in PHP 7.0 by kazinator on Tuesday October 06, 2015 @12:32PM (#10340094)
None of those who are complaining about the monument of shit being erected outside of town is actually an erector of monuments made of shit.

Typically, their complaints are about the ugly appearance and smell.

Only one side is constructive.

Re:An Exceptional Change in PHP 7.0 by ufo on Monday October 05, 2015 @08:22PM (#10335986)
I still don't get what stopped them from using any of the existing operators.
Re:An Exceptional Change in PHP 7.0 by teh_klev on Monday October 05, 2015 @09:06PM (#10336163)
Rationale was discussed on IRC, see:

https://wiki.php.net/_media/rfc/php.ns.txt

Linked to at the bottom of:

https://wiki.php.net/rfc/namespaceseparator

Re:An Exceptional Change in PHP 7.0 by ufo on Monday October 05, 2015 @09:48PM (#10336318)
I skimmed through it but couldn't really understand why they couldn't coopt one of the existing operators (for example, by making classes have a namespace for their methods)

Couldn't they provide a clearer explanation than simply dumping a huge IRC log like that??

Re:An Exceptional Change in PHP 7.0 by wvenable on Monday October 05, 2015 @10:34PM (#10336442)
Basically namespaces operate at a different level. You can almost imagine it like Macro expansion -- the namespaces are fully resolved for all the symbols in the file and then the compilation happens. This is necessary for a host of reasons. They can't co-opt an existing operator because all the existing operators work at an entirely different level.