PHP Namespace Support Syntax Change

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

Post 3+ Months Ago

Thanks for the info.

They need something different, besides double colon and backslash.
  • cipher
  • Graduate
  • Graduate
  • User avatar
  • Posts: 157

Post 3+ Months Ago

Ugh, counter-intuitive again! It's about time someone took the good parts of the language and start something new.
  • Open Source
  • Born
  • Born
  • Open Source
  • Posts: 1

Post 3+ Months Ago

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
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 119 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.