Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77057 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79925 invoked from network); 4 Sep 2014 14:00:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2014 14:00:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.44 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.44 mail-qg0-f44.google.com Received: from [209.85.192.44] ([209.85.192.44:38824] helo=mail-qg0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/E4-53069-B8078045 for ; Thu, 04 Sep 2014 10:00:44 -0400 Received: by mail-qg0-f44.google.com with SMTP id j5so10087434qga.31 for ; Thu, 04 Sep 2014 07:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=q9/7rzhVcuUv7sKvIWc/YKteArQWjcSHd6lvp36ZAHQ=; b=Uwe5MJgbTEqRg/WOfWd68GuhM9sy1kRla58BfAOV+r38EjzFKH1B/tuyaEHMZ6jFvS ifmqq25AHY3se7WU6/Vw+tuTahFePH2hQV8P2XePC9GbY1pbovzePgABeKwWZXLEm1de ZlyP2IIpIr971wsGV3EenSrDol/oDFIyErY/oAMJmMrzO/tcJC60Rtmkfh1GcFVurlXh tb/G3kpYKSHeAm06jTTu1j0iEMxTxYxPxi8UVjq+aMU13LZISPG9eU9yYtDZKyaBdAMv fogm7no/A/qesveWr3HUdnedClU5Ca6jHeQ9O4yVFq0E8kJHAmcWokM8GOkeJVO6NGan 6Kaw== MIME-Version: 1.0 X-Received: by 10.140.106.225 with SMTP id e88mr7279113qgf.20.1409839241322; Thu, 04 Sep 2014 07:00:41 -0700 (PDT) Received: by 10.140.95.146 with HTTP; Thu, 4 Sep 2014 07:00:41 -0700 (PDT) In-Reply-To: References: Date: Thu, 4 Sep 2014 16:00:41 +0200 Message-ID: To: Dmitry Stogov Cc: Bob Weinand , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: Fast zend_parse_parameters API From: pierre.php@gmail.com (Pierre Joye) On Thu, Sep 4, 2014 at 3:56 PM, Dmitry Stogov 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