Be Excellent To Each Other

And, you know, party on. Dude.

All times are UTC [ DST ]




Reply to topic  [ 15 posts ] 
Author Message
 Post subject: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 16:09 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69808
Location: Your Mum
PHP5 is getting the backslash as the namespace separator? What the fuck? Er, hello, we use that one for escaping characters in strings. I understand your reasons, but hell, there are plenty of other things you could use, like, I don't know, . maybe?

As someone pointed out: [...]this is (one of) the many reasons PHP sucks:
Code:
Java:
Attribute/Method access: foo.bar
Static method access:    Foo.bar
Package access:          foo.bar.baz

C#:
Attribute/Method access: foo.bar
Static method access:    Foo.bar
Namespace access:        foo.bar.baz

Python:
Attribute/Method access: foo.bar
Static method access:    Foo.bar
Module access:           foo.bar.baz

PHP:
Attribute/Method access: $foo->bar
Static method access:    Foo::bar
Namespace access:        foo\bar\baz


What the Hell?

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 16:10 
User avatar

Joined: 30th Mar, 2008
Posts: 32624
Yes, this was my reaction. I don't really for PHP and stuff like this doesn't help change my opinions.


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 16:12 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69808
Location: Your Mum
Doctor Glyndwr wrote:
I don't really for PHP and stuff

Indeed. Doctor of whatnow?

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 16:14 
User avatar
Gogmagog

Joined: 30th Mar, 2008
Posts: 48979
Location: Cheshire
Gay. It is.

_________________
Mr Chris wrote:
MaliA isn't just the best thing on the internet - he's the best thing ever.


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 16:16 
User avatar
Excellent Member

Joined: 30th Mar, 2008
Posts: 5924
Location: Stockport - The Jewel in the Ring
I'm pretty sure it isn't Doctor of Gay.

_________________
Mint To Be Stationery - Looking for a Secret Santa gift? Try our online shops at Mint To Be.

Book me in the Face | Tweet me. Tweet me like a British nanny.


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 16:16 
User avatar

Joined: 30th Mar, 2008
Posts: 32624
Grim... wrote:
Doctor Glyndwr wrote:
I don't really for PHP and stuff

Indeed. Doctor of whatnow?
Me fail English? That's unpossible!

I meant to type "I don't really like PHP, and stuff like this rubbish isn't making me warm to it" but it got lost in a redraft.


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 16:26 
SupaMod
User avatar
Commander-in-Cheese

Joined: 30th Mar, 2008
Posts: 49252
Plissken wrote:
I'm pretty sure it isn't Doctor of Gay.


I'm not convinced.

_________________
GoddessJasmine wrote:
Drunk, pulled Craster's pork, waiting for brdyime story,reading nuts. Xz


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 16:30 
Excellent Member. Haha! Member

Joined: 31st Mar, 2008
Posts: 116
I was briefly entertained by this, followed by forming a steely resolve to never use namespaces in PHP ever.

_________________
Image
<shin> we've got some pegging to do


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 16:56 
Awesome
User avatar
Yes

Joined: 6th Apr, 2008
Posts: 12357
As I'm considering my first venture into php this is a sure fire way to make me investigate something else instead. All those other languages use the same conventions for goodness sake.

_________________
Always proof read carefully in case you any words out


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 20:46 
User avatar
MR EXCELLENT FACE

Joined: 30th Mar, 2008
Posts: 2568
Use Ruby. It's ace.

_________________
This man is bound by law to clear the snow away


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 23:40 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69808
Location: Your Mum
Pod wrote:
Use Ruby. It's ace.

Outside. Now.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Tue Oct 28, 2008 23:43 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69808
Location: Your Mum
Here is a scientific graph, drawn by my cousin:
Image

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Wed Oct 29, 2008 0:00 
User avatar
MR EXCELLENT FACE

Joined: 30th Mar, 2008
Posts: 2568
I said Ruby, not Rails. :)




But that's because I wouldn't touch web development with a barge pole. Only fools do that.
edit: Also, Rails developers have a brilliant reason to be smug: They're using Ruby! And Ruby is Ace. It's like Perl but dead, dead, dead better.

_________________
This man is bound by law to clear the snow away


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Wed Oct 29, 2008 1:34 
User avatar
What-ho, chaps!

Joined: 30th Mar, 2008
Posts: 2139
PHP using . as a namespace operator would cause EXPLOSIONS.

_________________
[www.mrdictionary.net]


Top
 Profile  
 
 Post subject: Re: PHP 5 Namespace separators
PostPosted: Wed Oct 29, 2008 20:44 
User avatar
MR EXCELLENT FACE

Joined: 30th Mar, 2008
Posts: 2568
Alows Classes and Namespaces to have the same name is a ridiculous idea.

_________________
This man is bound by law to clear the snow away


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 15 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Columbo, Squirt, The Greys and 0 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

Search within this thread:
You are using the 'Ted' forum. Bill doesn't really exist any more. Bogus!
Want to help out with the hosting / advertising costs? That's very nice of you.
Are you on a mobile phone? Try http://beex.co.uk/m/
RIP, Owen. RIP, MrC. RIP, Dimmers.

Powered by a very Grim... version of phpBB © 2000, 2002, 2005, 2007 phpBB Group.