Re: A critique of PHP 6
| From: | Jacob Oettinger | Date: | Wed, 21 Apr 2010 14:18:47 +0000 |
| Subject: | Re: A critique of PHP 6 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48042@lists.php.net to get a copy of this message | ||
On 21/04/2010, at 16.03, Stan Vassilev wrote:
>
> Ahem. We all secretly know how it should've been from the very start. Pseudo-methods for
> the basic types.
>
> $array->merge($array2);
> $string->len();
>
Yes. Maybe implemented so that they can be called like functions in a namespace for each type with
the "this" value as the first param. So that:
$array->merge($array2);
<=>
\array\merge($array, $array2);
and
\string\len($string);
<=>
$string->len();
Regards, Jacob