Re: Pseudo-objects (methods on arrays, strings, etc.)
| From: | Andrew Faulds | Date: | Wed, 18 Jul 2012 16:56:50 +0000 |
| Subject: | Re: Pseudo-objects (methods on arrays, strings, etc.) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61418@lists.php.net to get a copy of this message | ||
Obviously. This is simply the means to provide the new API without breaking
BC. If people think this is acceptable then sure, let's plan an API.
On Jul 18, 2012 5:54 PM, "Stas Malyshev" <smalyshev@sugarcrm.com> wrote:
> Hi!
>
> > Er, sorry, accidental capslock. This IS a new API. That was an example.
> > I'm not saying just put -> everywhere, I'm saying we can keep array_*
> > and add a new set of -> functions which are well-designed, consistent,
> etc.
>
> What "this"? So far I didn't see any single message discussing anything
> about any API. All I see is discussing how we should have -> syntax
> working on arrays and strings. IMO this is exactly the wrong place to
> start, if your goal is to improve the API (if your goal is to have
> "sexy" syntax, it's fine but then I do not see this goal as worthy). The
> right place to start would be the API.
>
> --
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
> (408)454-6900 ext. 227
>