A few weeks ago, when I heard that PHP was finally going to get namespaces, the first thing that came to my mind was: “I hope they won’t introduce a dodgy syntax for it”. After going over a few code examples that would demonstrate this “new” PHP feature, I was happy to see that they went with the “::” notation that is commonly used in programming languages to denote a namespace separator.
Comments
OtengiM replied ago:
PHP is laughable, it is the worst designed language in all history by idiots. I was getting into PHP lately but thanks to this news now I run far far away from this PHP garbage.
Good luck to PHP folks they should get a proper programming language designer.
antych replied ago:
PHP was not designed, it evolved. You still have no understanding of it and you're acting like a total moron changing you're mind about it every day. Now run away and don't come back.
dragmire replied ago:
A language designer? A benevolent dictator?
Anyway, what would you suggest to change it? If you have a computer with a keyboard and a few spare cycles, you can write your own patches and submit them, yaknow. Thats how this whole namespace separator came into existence in the first place. So don't sit here and bitch about changes when you can write a competing patch and have the community duke it out.
tobyhede replied ago:
It's unrealistic to expect anyone to be able patch consistency into PHP. As noted above, the language has really evolved rather than been designed.
dragmire replied ago:
I don't think its TOO unrealistic. We're all smart people and the source is open. It's just about sitting down and figuring out what needs to be done. If enough people back your point of view then the coding part isn't much work at all.
Ricky Clarkson replied ago:
I doubt it's possible to persuade anyone knowledgeable to work on improving a language where reading from a variable is punished with a $ sign.
Voters For This Link (17)
Voters Against This Link (1)