Link Details

Link 129275 thumbnail
User 111696 avatar

By bloid
via ninh.nl
Published: Oct 27 2008 / 08:36

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.
  • 17
  • 1
  • 1478
  • 515

Comments

Add your comment
User 338269 avatar

OtengiM replied ago:

-2 votes Vote down Vote up Reply

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.

User 233461 avatar

antych replied ago:

7 votes Vote down Vote up Reply

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.

User 256617 avatar

dragmire replied ago:

1 votes Vote down Vote up Reply

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.

User 255579 avatar

tobyhede replied ago:

0 votes Vote down Vote up Reply

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.

User 256617 avatar

dragmire replied ago:

0 votes Vote down Vote up Reply

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.

User 179375 avatar

Ricky Clarkson replied ago:

-1 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.