Skip navigation.

Raphael's Blog

A look into a programmer and administrator's life

php now has name\spaces support

Finally, the long-awaited release (just alpha atm) of PHP with namespaces support is out, go, get it, and enjoy the sub\spaces\separator before you get\mad\with\it.

how to perform archive-wide stuff without wasting time and bandwidth, or without setting up your own local mirrorRe: Per-process namespaces

Comments

Anonymous 5. December 2008, 09:02

lloeki writes:

ok, this is ridiculous. I'm all for namespaces, but backslash as a separator? nonsense.

to me all of "problems" down the page [1] are showstoppers.

besides, a world exists outside the US, and people do use other keybards, where typing backslash generates instant physical pain.

what's more the point about "more people dev under windows so they're used to it, besides it matches the directory path" is completely ridiculous in a good number of areas, one of them being as simple as some people do use windows, but everyone uses the internet and URLs, where php development lies and where slash is the separator.

and seriously, WTF with the "contest" contenders down the page [2]? a simple dot isn't even considered (or anything else already used in another, sane, language). and what's the point of a contest when "[they] did not weigh all criterions evenly". and criterions themselves are completely ridiculous, along with the referenced IRC discussion, which is a complete joke.

this is precisely why I hate php. it takes all the bad design of years of programming language history and packages it in one neat package.

[1] http://wiki.php.net/rfc/backslashnamespaces
[2] http://wiki.php.net/rfc/namespaceseparator

Anonymous 5. December 2008, 12:58

Clemens writes:

Seriously, that seperator sucks.
Anyone learning Ruby? ;)

atomo64 6. December 2008, 01:07

At least Stefan Esser already forked php, and provided another solution.

I guess I'll just stay away from subnamespaces, they just suck.

Oh, and I wonder why nobody proposed using '-', that's easier to read and doesn't conflict with anything else. E.g. MyProject-Sub-Level

Anyone learning Ruby?


already tried, but haven't yet done anything that actually works.

besides, a world exists outside the US, and people do use other keybards, where typing backslash generates instant physical pain.


Right, their "\ is a single keystroke on U.S. keyboard layout without shift key" statement is just ridiculous.

php. it takes all the bad design of years of programming language history and packages it in one neat package.


Do you mind if I quote you? would be a nice addition to a quotes db :D

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

Type the two words displayed in the image below:


Smilies