Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68938 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96038 invoked from network); 7 Sep 2013 07:52:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2013 07:52:14 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.53 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.53 mail-la0-f53.google.com Received: from [209.85.215.53] ([209.85.215.53:60128] helo=mail-la0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/44-00660-B2BDA225 for ; Sat, 07 Sep 2013 03:52:11 -0400 Received: by mail-la0-f53.google.com with SMTP id el20so3411341lab.26 for ; Sat, 07 Sep 2013 00:52:08 -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=vlj5rj7CCgxcCH81uFtOsr3fK7SGVQQ08K4l/S9qI6M=; b=fAk1Tz95KnkE2LTrtJ3s63d8pz0TUMCNHiFvz2s0Y5aO6t6e6Rfd1rDAAjbCXg8mw5 FTl7iZwgChzFFiFHnRQsLqaEQ49iluSrLy68eTJsWO9NHbbkjB4evwm37eoKFmKhvTOT 3uTAmksoAEdzw45wqyV6wIgg2v7Z0MwhdIcOyHyH70OzNFyDPq2j4/vFpAOb2f5JNsX+ 8n/S9D8pVrEv06R6r4lTpgu54XzMi/leo6+1lcNpf54equS7t1SA3+wH4EGaA4aWynS2 KVSTrueUEZR+BTWLR1h0lxoSk7AjAodJw9DaOt3cP4ZSHLpmS9UUD05mEy/yC/y35xKb 4TZA== MIME-Version: 1.0 X-Received: by 10.112.190.1 with SMTP id gm1mr97535lbc.30.1378540328398; Sat, 07 Sep 2013 00:52:08 -0700 (PDT) Received: by 10.112.148.138 with HTTP; Sat, 7 Sep 2013 00:52:08 -0700 (PDT) In-Reply-To: References: Date: Sat, 7 Sep 2013 09:52:08 +0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Named parameters From: pierre.php@gmail.com (Pierre Joye) hi! On Fri, Sep 6, 2013 at 6:39 PM, Nikita Popov wrote: > Hi internals! > > I created an RFC and preliminary implementation for named parameters: > > https://wiki.php.net/rfc/named_params > > The RFC and implementation are not yet complete. I mainly want to have > feedback on the idea in general and on the Open Questions ( > https://wiki.php.net/rfc/named_params#open_questions) in particular. Love it and always wanted it! Thanks for working on that! I quickly look at the patch and related phpt, so feel free to nicely correct me if I ask something already covered :) In no particular order: . Warning: Cannot pass positional arguments after named arguments. Aborting argument unpacking in %s on line %d Would it make more sense to make it a fatal error? As the code will likely not work as expected, at all. It could be a bit too harsh but as it is a new feature, there is no BC impact and ensure good usage. . would it make sense to have an alternative zend API to fetch one or more argument using its name? I can see a couple of usages for such a function - It would be nice to add (later once the RFC is more stable) docs about which impacts and changes are expected for extension developers - Do you have a fork for this RFC? Much easier to test, create snaps, etc. Cheers, -- Pierre @pierrejoye | http://www.libgd.org