Re: [PHP-DEV] Re: Fast zend_parse_parameters API

[email protected] (Pierre Joye)
Newsgroups php.internals
Message-ID <CAEZPtU65CvPDCs=V3rAct8tfYeTLdsfA9mUt4eRzqCjyW+qjrg@mail.gmail.com>
On Thu, Sep 4, 2014 at 3:56 PM, Dmitry Stogov <[email protected]> wrote:
> I like the idea of having a single syntax for all cases, but I don't like
> the syntax you propose.
> In my opinion, it's syntactically inconsistent, less readable and more
> error prone, than the old one (sscanf based) and the FAST_ZPP one that is
> already in php-master.

I do not like any of the new ones, FAST_ZPP included. I find them all
error prones and not as KISS as what we have now.

As I understand correctly the only reason we have this discussion is
the performance impact of zpp with some functions, mainly
ZEND_FUNCTIONs. What prevents us to make them operators? That may
break things like  call_user_func("strlen", $arg), array_map and the
likes but there may have ways to limit the BC breaks here too. If it
avoid an endless discussion about APIs, it is worse the effort to try
it.

Cheers,
--
Pierre
@pierrejoye | http://www.libgd.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.