What is new and exciting in PHP 5.3?
abcphp.com
What is new and exciting in PHP 5.3?
1–8 of 8 posts
Re: What is new and exciting in PHP 5.3?
#2Re: What is new and exciting in PHP 5.3?
#3Re: What is new and exciting in PHP 5.3?
#4Now php 5.3 has lambdas, 'pharchives' :] and namespaces plus other goodness...
I wonder why they used a slash as the namespace scope clarifier - why not '::' or just '.' ?
I'm not dissing PHP, Ive used it, its handy, fast sturdy, ubiquitous.. but you feel the syntax works against you.
Re: What is new and exciting in PHP 5.3?
#5Link to a link - http://www.webdigi.co.uk/blog/2009/what-is-new-in-php-53-for... Now php 5.3 has lambdas, 'pharchives' :] and namespaces plus other goodness... I wonder why they used a slash as the namespace scope clarifier - why not '::' or just '.' ? I'm not dissing PHP, Ive used it, its handy, fast sturdy, ubiquitous.. but you feel the syntax works against you.
So the choice ended up being between ::: and the backslash, the backslash being chosen because it is easier to type.
Re: What is new and exciting in PHP 5.3?
#6Re: What is new and exciting in PHP 5.3?
#7There's a lot of interesting work being done at http://groups.google.com/group/serverjs?hl=en and https://wiki.mozilla.org/ServerJS
Re: What is new and exciting in PHP 5.3?
#8Link to a link - http://www.webdigi.co.uk/blog/2009/what-is-new-in-php-53-for... Now php 5.3 has lambdas, 'pharchives' :] and namespaces plus other goodness... I wonder why they used a slash as the namespace scope clarifier - why not '::' or just '.' ? I'm not dissing PHP, Ive used it, its handy, fast sturdy, ubiquitous.. but you feel the syntax works against you.
There was a really big argument at the time, the crux of which was that since the PHP parser isn't context aware they had to use a symbol that wasn't used elsewhere. :: is used for static calls, . is used for concatenation. So the choice ended up being between ::: and the backslash, the backslash being chosen because it is easier to type.