Re: Pseudo-objects (methods on arrays, strings, etc.)
| From: | Pierre Joye | Date: | Wed, 18 Jul 2012 08:02:42 +0000 |
| Subject: | Re: Pseudo-objects (methods on arrays, strings, etc.) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61388@lists.php.net to get a copy of this message | ||
hi,
On Wed, Jul 18, 2012 at 9:35 AM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> See the other answers, clear APIs, no more argument mess, cleanness.
>
> Cleanness has nothing to do with pseudo-objects.You don't have to use
> -> to have clean APIs, and using -> doesn't automatically make your APIs
> clean.
I really do not want to have a semantic discussion here.
This syntax is sexy, allows us to clean our APIs, and is amazingly handy.
The reasons why it is not yet implemented have been listed here, only
a matter of time :)
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org