Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97496 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35296 invoked from network); 31 Dec 2016 06:21:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Dec 2016 06:21:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=dave@mudsite.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dave@mudsite.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mudsite.com designates 209.85.217.171 as permitted sender) X-PHP-List-Original-Sender: dave@mudsite.com X-Host-Fingerprint: 209.85.217.171 mail-ua0-f171.google.com Received: from [209.85.217.171] ([209.85.217.171:35641] helo=mail-ua0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/BE-04761-86E47685 for ; Sat, 31 Dec 2016 01:21:29 -0500 Received: by mail-ua0-f171.google.com with SMTP id v2so92218899uac.2 for ; Fri, 30 Dec 2016 22:21:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mudsite-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=zqm6rFTLswBOfdcl6JBoQkZiXg+RixbQS2OslacEDpc=; b=nlY/x3xVtzFZhitg2NyD63bKeqUTYtQ3DYxVC9Rd5szXREfGDKO4U2NFZ2s2EcKbQH AzZJVWRSm5QuSlUPP2CHLLtrxINjT26vPI/uCgtfvAJF3B8KI9MPyfTC2sqCIRC311DA CHDHPSb76dqQa9GwwM3eCbt5TCMaXwCBLwgVleUzsjQAaYnSJEQNuVbSkvzBIpBR5hIW 2TmSJTjjdXZfW86Nx4Pzj7LBinuhEZBr/w3hjSgrhAcNOhM14l7+A0u4KWQo6sGYogh7 SZYHZA0noA+dQw6UXEN+5VlookzbnmUb3+F/N4Y/aUq0SDSYttPVFe6DT71yRayY3WGz Wkyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zqm6rFTLswBOfdcl6JBoQkZiXg+RixbQS2OslacEDpc=; b=uZY8hGiGHLic4kPiweE5jslaj5CzPuFFOfBe5g7teDa1x4RYyY6EhZgegjbBbb0xky CIRFLdf7EVHbJw8kYvuApz8djb57UZrRNV/UkiHp4Od9AmlEV+VAudJqWBGloWwCkHwv CDVEX+6yV+LCA5cCfTodq2ctPm7tw2korkNT+MkjChcMP5u8Xc+5lDUSWevlJVBBjfXV t8kZOVrOB/kA8y0nJPqCoFo+Ob2Mnim3BsQL7KbVTzKd9WxqmMRwBdmTZDBdBaP//Zoi pGZuDo/YXtv5ujS/rsJqeRoUaB7oi6Zt7aJX7UcnJSWc9RDOQjlYENF2Anh1SI2KiVf5 KGsA== X-Gm-Message-State: AIkVDXIlqVQUfdR+ZYJVB5ORfbJu/gzYUGpaKjB5qkv8mAPhYULijZjPojk3Q6APOa1KjXBzP1celVejpX/mpg== X-Received: by 10.176.67.70 with SMTP id k64mr39157173uak.125.1483165285885; Fri, 30 Dec 2016 22:21:25 -0800 (PST) MIME-Version: 1.0 Date: Sat, 31 Dec 2016 06:21:15 +0000 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=94eb2c0d58040255700544ee5414 Subject: [RFC][Discussion] - list() reference syntax From: dave@mudsite.com (David Walker) --94eb2c0d58040255700544ee5414 Content-Type: text/plain; charset=UTF-8 Hi All, I had mentioned the other day my desire to look at, and attempt implementation of allowing by-reference assignment within list()'s. Andrea had created an RFC for this purpose 2+years ago, but withdrew it due to problems with implementation with the parsing/compiler of PHP 5. I've taken a shot at implementing this feature within PHP7 and have commandeered the RFC and would like to re-open it for discussion. I've attached to the RFC my current implementation which seems to be working in the cases I can think of. I'd be interested to hear from the community about if this feature is still desirable, and if so, if there are list() cases that I haven't thought about yet for test cases. RFC (sorry for awkward formatting, not sure if the issues with links in messages & mailinglist are fixed yet): wiki php net/rfc/list_reference_assignment Cheers -- Dave --94eb2c0d58040255700544ee5414--