Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90664 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61129 invoked from network); 15 Jan 2016 15:46:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2016 15:46:03 -0000 Authentication-Results: pb1.pair.com header.from=julianrhind@outlook.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julianrhind@outlook.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain outlook.com designates 65.54.190.143 as permitted sender) X-PHP-List-Original-Sender: julianrhind@outlook.com X-Host-Fingerprint: 65.54.190.143 bay004-omc3s5.hotmail.com Received: from [65.54.190.143] ([65.54.190.143:57633] helo=BAY004-OMC3S5.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/33-39304-93419965 for ; Fri, 15 Jan 2016 10:46:02 -0500 Received: from APC01-PU1-obe.outbound.protection.outlook.com ([65.54.190.189]) by BAY004-OMC3S5.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 15 Jan 2016 07:45:59 -0800 Received: from MEXPR01MB0023.ausprd01.prod.outlook.com (10.162.50.145) by MEXPR01MB0021.ausprd01.prod.outlook.com (10.162.50.143) with Microsoft SMTP Server (TLS) id 15.1.361.13; Fri, 15 Jan 2016 15:45:56 +0000 Received: from MEXPR01MB0023.ausprd01.prod.outlook.com ([10.162.50.145]) by MEXPR01MB0023.ausprd01.prod.outlook.com ([10.162.50.145]) with mapi id 15.01.0361.006; Fri, 15 Jan 2016 15:45:55 +0000 To: PHP internals list Thread-Topic: RFC karma request re RFC proposal for alternative list syntax Thread-Index: AQHRT6vSzIxrJSrPVUuYob95mCkV4A== Date: Fri, 15 Jan 2016 15:45:55 +0000 Message-ID: References: <56807248.4060609@gmail.com> ,,, In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.php.net; dkim=none (message not signed) header.d=none;lists.php.net; dmarc=none action=none header.from=outlook.com; x-tmn: [86JFOkMI0i90jz4ss3XaR/T0+vscY9vgfq+YD3EixNY=] x-microsoft-exchange-diagnostics: 1;MEXPR01MB0021;23:BHPeT7KJdPjxUaGJSMQWmP9AnCrQ+1MbYm5qwAjs6diIUTq1l4zEu+dvQ4kZP6BMqkUVaWumVnDogmj0pysdCVEYpyAAq43oqy0fAfs0lk4ScpOoj1DUJ7e9CBybBnA7b1mT7bbzfeGhSJpZpcSLjNCZxYQ7+W82FDMZ0YjDsw1lHNkk8HA2NTqdOtWFXtTZs3fbHYVhfNXYFAiDAJJ9FQ==;5:i7+44uhx6thQddHMCUhK2Z12rUjnNYtsoddhNyqjyMs4zcrOFopWNAG+ZYWTyn8prVFeRnIC/8GMIXz1xXFJFAvV858k3kvsQQ6Pz8nMHfAUlItpeqj3OolCleIz3m7MGUR229/WN8nWkd1zWBMYIA==;24:bxFFtRX8YxVU0Ac1+olmV4Tx+qGkKatxvNsX2642mhYAnHzCNYRb+k9LDjBQx31CA4Cw2mzyh6hFr84OSBhKOW7gG9ZcseuvZ0xcPF4iBE8= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(42134001)(42139001);SRVR:MEXPR01MB0021; x-ms-office365-filtering-correlation-id: 884276a2-66f1-4210-9fb2-08d31dc2f4e1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015012)(82015046);SRVR:MEXPR01MB0021;BCL:0;PCL:0;RULEID:;SRVR:MEXPR01MB0021; x-forefront-prvs: 08220FA8D6 x-forefront-antispam-report: SFV:NSPM;SFS:(7070004)(98900002);DIR:OUT;SFP:1901;SCL:1;SRVR:MEXPR01MB0021;H:MEXPR01MB0023.ausprd01.prod.outlook.com;FPR:;SPF:None;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_MEXPR01MB002359E448531587FA827FD0B0CD0MEXPR01MB0023ausp_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2016 15:45:55.7566 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: MEXPR01MB0021 X-OriginalArrivalTime: 15 Jan 2016 15:45:59.0410 (UTC) FILETIME=[D4876520:01D14FAB] Subject: RFC karma request re RFC proposal for alternative list syntax From: julianrhind@outlook.com (Julian Rhind) --_000_MEXPR01MB002359E448531587FA827FD0B0CD0MEXPR01MB0023ausp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Thanks all for the feedback - I'm posting back to get some "RFC karma" for = my newly created wiki account please - so I can post my RFC - username is "= julian" Thanks Regards Julian ________________________________ From: Kris Craig Sent: 28 December 2015 18:40 To: Pierre Joye Cc: PHP internals list; Julian Rhind; Stanislav Malyshev Subject: Re: [PHP-DEV] RFC proposal for alternative list syntax On Dec 27, 2015 7:56 PM, "Pierre Joye" > wrote: > > On Mon, Dec 28, 2015 at 6:20 AM, Stanislav Malyshev > wrote: > > Hi! > > > >> // With the new array syntax this has been improved to > >> > >> list ($a, $b) =3D [1, 2]; > >> > >> // I think this new syntax should logically extend to > >> > >> [$a, $b] =3D [1, 2]; > > > > list() and array() are two different language constructs, using the sam= e > > syntax for them is a bad idea. > > I tend to agree here but it exists elsewhere and is quite handy. Also > the behavior of this expression, in this case, is obvious. > > > Cheers, > -- > Pierre > > @pierrejoye | http://www.libgd.org > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > This could be very nice shortcut to have. Seems intuitive enough; I doubt = there'd be any serious confusion over this. You should draft an RFC for this, OP. --Kris --_000_MEXPR01MB002359E448531587FA827FD0B0CD0MEXPR01MB0023ausp_--