Re: Pseudo-objects (methods on arrays, strings, etc.)
| From: | Pierre Joye | Date: | Tue, 17 Jul 2012 10:24:29 +0000 |
| Subject: | Re: Pseudo-objects (methods on arrays, strings, etc.) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61342@lists.php.net to get a copy of this message | ||
hi Gustavo,
On Tue, Jul 17, 2012 at 12:21 PM, Gustavo Lopes <glopes@nebm.ist.utl.pt> wrote:
> There isn't a difference in terms of making PHP more object oriented, which
> was the main advantage advanced by the OP. I'm all for redesigning
> strings/arrays APIs (presented as an afterthought by the OP), but for that
> the discussion should be centered on what those APIs will look like, not the
> syntax one uses to call them.
To provide pseudo objects is a damned good point and long due. Please
don't focus on a badly formulated initial post (more object oriented),
we are not in a CS course but in the PHP internals discussions list
:).
> In fact, quite frequently, syntax discussions make more important design
> decisions be ignored (see namespaces).
Syntax easiness and APIs cleanness are what make a language attractive.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org