Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92147 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51553 invoked from network); 7 Apr 2016 19:11:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2016 19:11:25 -0000 Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 62.179.121.164 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 62.179.121.164 vie01a-dmta-pe04-2.mx.upcmail.net Received: from [62.179.121.164] ([62.179.121.164:47006] helo=vie01a-dmta-pe04-2.mx.upcmail.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/F4-48788-BD0B6075 for ; Thu, 07 Apr 2016 15:11:25 -0400 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe04.mx.upcmail.net with esmtp (Exim 4.72) (envelope-from ) id 1aoFKr-0006ug-1N for internals@lists.php.net; Thu, 07 Apr 2016 21:11:21 +0200 Received: from mail02.home ([213.47.8.56]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id fXBK1s00R1CY7x901XBLNP; Thu, 07 Apr 2016 21:11:21 +0200 X-SourceIP: 213.47.8.56 Received: from rage.home ([192.168.1.52]) by mail02.home with esmtp (Exim 4.72) (envelope-from ) id 1aoFKo-0007d7-Uy for internals@lists.php.net; Thu, 07 Apr 2016 21:11:19 +0200 To: internals@lists.php.net References: <45.34.48788.AC056075@pb1.pair.com> Message-ID: <5706B0CE.7030801@fischer.name> Date: Thu, 7 Apr 2016 21:11:10 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <45.34.48788.AC056075@pb1.pair.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "scanner01.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hey, On 07.04.2016 14:21, Andrea Faulds wrote: > Bob and I have made an RFC which proposes an alternative syntax for list(): > > https://wiki.php.net/rfc/short_list_syntax > > Please tell us your thoughts. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: php.net] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: Re: [PHP-DEV] [RFC] Square bracket syntax for array destructuring assignment From: markus@fischer.name (Markus Fischer) Hey, On 07.04.2016 14:21, Andrea Faulds wrote: > Bob and I have made an RFC which proposes an alternative syntax for list(): > > https://wiki.php.net/rfc/short_list_syntax > > Please tell us your thoughts. Reading the last sample in the RFC: > Both due to implementation issues, and for consistency's sake, list() cannot be nested inside [], nor vice-versa: [...] > // This, however, is allowed: > [[$a, $b], [$c, $d]] = [[1, 2], [3, 4]]; and then > This RFC has no impact upon OPcache or other extensions dealing with PHP opcodes, because the compiled result is identical to the list() syntax. Without any deeper technical knowledge, these two things don't look compatible to me at first. It's probably a non-issue, but mentioning the list() can't be nested, the new destructuring syntax can, but "the compiled result is identical to the list() syntax" doesn't add up somehow. If you can elaborate on this, that wold be nice. Thanks :) - Markus