Re: A critique of PHP 6
| From: | Alban LEROUX | Date: | Tue, 20 Apr 2010 23:51:54 +0000 |
| Subject: | Re: A critique of PHP 6 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48027@lists.php.net to get a copy of this message | ||
On 2010-04-20 16:39:07 +0200, Adi Nita said:
Hi everyone,
Regarding some of the features that are going to ship in PHP 6, I'm going to
take some liberty and make some personal remarks in the form of positive
criticism.
1. SYSTEM NAMESPACES.
I prefer see scalar object implemented with all grouped function
related as method in PHP 6 and type hiting for this object. We have
allready lot of exemple of success with this type of implementation
like ArrayObject, Date Object, Mysqli Object etc...
2. TYPE HINTING.
+ 1, for people want to use it, this possibility is a big lack in
3. CONST VALUES.
-1 but yes for matematical (or logical) operation like this :
class foo
{
const OPTION_1 = 1 << 0;
const OPTION_2 = 1 << 1;
const OPTION_3 = 1 << 2;
const OPTION_4 = 1 << 3;
}
4. PARAMETER ORDER.
+1
Thank you for your time,
Adrian Nita
--
Alban Leroux
seza@paradoxal.org
Web developper