PHP Namespace Support Syntax Change

  • joebert
  • S.T. Manager
  • Genius
  • User avatar
  • Joined: 10 Feb 2004
  • Posts: 11002
  • Loc: Clearwater, FL
  • Status: Offline

Post October 26th, 2008, 12:13 pm

If you've been following the development of PHP namespace support, you're probably familiar with the double-colon syntax already being used to access to access static members of a class. Well, they're changing it.

It seems rather than stick with consistency & keep the double-colon syntax which people are already using for faux namespace support through static methods, PHP developers have decided to make a trip out into left field and use a baclskash instead.

http://wiki.php.net/_media/rfc/php.ns.t ... ache=cache
http://news.php.net/php.internals/41374

I don't like it. Backslashes are for character escape sequences.
The squeaky wheel gets the grease, but the whining wheel gets replaced.
Picksel: Ubuntu/Gnome alternative to Colorpix
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 26th, 2008, 12:13 pm

  • PolishHurricane
  • Guru
  • Guru
  • User avatar
  • Joined: 17 Feb 2005
  • Posts: 1436
  • Loc: +42°31'50.78", -70°54'42.99"
  • Status: Offline

Post October 26th, 2008, 4:09 pm

Thanks for the info.

They need something different, besides double colon and backslash.
  • cipher
  • Graduate
  • Graduate
  • User avatar
  • Joined: 11 Feb 2004
  • Posts: 142
  • Status: Offline

Post October 26th, 2008, 6:25 pm

Ugh, counter-intuitive again! It's about time someone took the good parts of the language and start something new.
  • Open Source
  • Born
  • Born
  • No Avatar
  • Joined: 30 Oct 2008
  • Posts: 1
  • Status: Offline

Post October 30th, 2008, 4:26 am

I love the idea. But why declare it once at the top of the file? Why not use curly-braces to put them anywhere?
  • joebert
  • S.T. Manager
  • Genius
  • User avatar
  • Joined: 10 Feb 2004
  • Posts: 11002
  • Loc: Clearwater, FL
  • Status: Offline

Post October 30th, 2008, 10:35 am

Because that wouldn't be as exciting OS. :)

I read once that "People love PHP so much because it was written by a rodeo clown on acid.", which makes be chuckle now and then.
The squeaky wheel gets the grease, but the whining wheel gets replaced.
Picksel: Ubuntu/Gnome alternative to Colorpix

Post Information

  • Total Posts in this topic: 5 posts
  • Moderator: Moderator Team
  • Users browsing this forum: No registered users and 60 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.