Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71083 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78835 invoked from network); 12 Jan 2014 10:32:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2014 10:32:12 -0000 Authentication-Results: pb1.pair.com header.from=ingwie2000@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ingwie2000@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 74.125.83.45 as permitted sender) X-PHP-List-Original-Sender: ingwie2000@googlemail.com X-Host-Fingerprint: 74.125.83.45 mail-ee0-f45.google.com Received: from [74.125.83.45] ([74.125.83.45:49019] helo=mail-ee0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/C0-09546-A2F62D25 for ; Sun, 12 Jan 2014 05:32:11 -0500 Received: by mail-ee0-f45.google.com with SMTP id d49so2634186eek.32 for ; Sun, 12 Jan 2014 02:32:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=mtT9fEirGfIl+3X14BH6L4xyC9ivVsl702wjEjbQmac=; b=P6EXMLr9ss6tG3IPBsYMHTp44Vw2g1YGkXTu1HdHpMiToCPG9DGR+SUAESRXqYeLeP FNhravWOYP4YkbZcR6mhMKZIPPF63pk6GuXkScvgVb2TCctTYBrF7c+EtDpCPXh249Fk skSxb2BqUrT2MH+qDxWXrSPv4fQR0SV1HMkSA3hRWa1WiSM5alPgM60vaglaEW5RHN1e WHkso2hMhBn/wAAERgmZCenScENK/2gXPfnGPdh8FqJTtJwbqA8mm3FfTh8tmkCnN9xC XqDLfy5na2d1lHVLfxCjH9ih1A1kD/I74VWerTiZoO6aB8/Q1mBpDQB/XbC2KLyHksOo /awQ== X-Received: by 10.14.173.7 with SMTP id u7mr20530936eel.24.1389522728373; Sun, 12 Jan 2014 02:32:08 -0800 (PST) Received: from ingwies-air.speedport_w723_v_typ_a_1_00_098 (p5B152B51.dip0.t-ipconnect.de. [91.21.43.81]) by mx.google.com with ESMTPSA id a51sm29921093eeh.8.2014.01.12.02.32.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 12 Jan 2014 02:32:07 -0800 (PST) Content-Type: multipart/alternative; boundary="Apple-Mail=_FCE51F4A-963A-4EFA-BB1C-4C3345C7B278" Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) In-Reply-To: Date: Sun, 12 Jan 2014 11:32:05 +0100 Cc: PHP internals Message-ID: <1590F2FF-C0E2-4306-AB82-DDB095FFFE02@googlemail.com> References: <581A185E-0F00-4B49-AA87-859D75E63BA2@googlemail.com> To: Nikita Popov X-Mailer: Apple Mail (2.1822) Subject: Re: [PHP-DEV] Revisiting the "Named Arguments" RFC From: ingwie2000@googlemail.com (Kevin Ingwersen) --Apple-Mail=_FCE51F4A-963A-4EFA-BB1C-4C3345C7B278 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Cool! Hopefuly it=92ll make it some day - that=92d be very useful to = have. :3 Am So. Jan. 12 2014 11:27:22 schrieb Nikita Popov: > On Sat, Jan 11, 2014 at 4:42 PM, Kevin Ingwersen = wrote: > Hello there. >=20 > Within one of the recent votes, I was reminded upon an RFC for named = parameters/arguments - to be exact, this one: = https://wiki.php.net/rfc/named_params >=20 > I just wanted to know if this RFC is still in discussion, has been = dropped, or what else is currently being up with it. Because in my = opinion, that=92d be a very useful addition - as many modern languages = support this kind of feature already. The only language that I personaly = am using that supports that is Objective-C - and in there, it is very = useful. Although its quite different - it=92s a different call-style = entirely - I could imagine the implementation from the link above to be = very useful in PHP. >=20 > It would be great to know the current state of the RFC, as I didn=92t = really see anything of its current state on the page itself. >=20 > A quick summary: >=20 > The open questions are mostly resolved, namely: Variadics / unpacking = on named args should use same syntax as for not-named args. No signature = checks should be introduced, instead use runtime errors. The question of = syntax wasn't yet entirely clear, though that's something one could just = vote, if need be. >=20 > The patch itself is also finished from the "general feature = implementation" side. What is missing are updates to internal functions. = Namely all arginfo structs should be made consistent across functions = and synced with the docs. Also we need to ensure that argument parsing = for internal functions works correctly everywhere. >=20 > Feature freeze for 5.6 is in two months and the last two points = require a huge amount of work (because of the sheer number of functions = in our standard library). I started a bit on the arginfo part, by = updating the parameter names for array functions in the docs, but didn't = continue that effort as other things got in the way. I don't think I'll = have enough time to finish this before 5.6 FF. >=20 > So, likely this will be postponed to the next version of PHP ;) >=20 > Nikita --Apple-Mail=_FCE51F4A-963A-4EFA-BB1C-4C3345C7B278--