Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90646 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71316 invoked from network); 14 Jan 2016 17:20:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2016 17:20:45 -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.55.34.215 as permitted sender) X-PHP-List-Original-Sender: julianrhind@outlook.com X-Host-Fingerprint: 65.55.34.215 col004-omc4s13.hotmail.com Received: from [65.55.34.215] ([65.55.34.215:52609] helo=COL004-OMC4S13.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/23-49664-AE8D7965 for ; Thu, 14 Jan 2016 12:20:43 -0500 Received: from APC01-SG2-obe.outbound.protection.outlook.com ([65.55.34.201]) by COL004-OMC4S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 14 Jan 2016 09:20:40 -0800 Received: from ME1PR01MB0020.ausprd01.prod.outlook.com (10.162.64.146) by ME1PR01MB0019.ausprd01.prod.outlook.com (10.162.64.145) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 14 Jan 2016 17:20:34 +0000 Received: from ME1PR01MB0020.ausprd01.prod.outlook.com ([10.162.64.146]) by ME1PR01MB0020.ausprd01.prod.outlook.com ([10.162.64.146]) with mapi id 15.01.0361.006; Thu, 14 Jan 2016 17:20:34 +0000 To: PHP internals list Thread-Topic: [PHP-DEV] RFC proposal for alternative list syntax Thread-Index: AQHRQODZJwgbuqA/ukmiFiYQxQmGFZ7feKQAgABNEICAABztgIAA+PsGgBqB69A= Date: Thu, 14 Jan 2016 17:20:33 +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: [OdJ7rQKHYUWQjJrpodAqXq/EOw6FyWjw] x-microsoft-exchange-diagnostics: 1;ME1PR01MB0019;23:6r141jf1akPSOmePYjkqyFVD3Nubmy2IeMuyYWaVGM9CtsoNVfvoVsry2MUXYSSnzayOvJqptk3xaEchyokI9NxUiAWQkGkdg8IJ/q6v/V8S2graL79/+i7VnM8kovxlnAHWaiEMavu8uWtLoPYswvfkOq91goVn6jU07Vnbfa4PifFYT5jwE2lMYsFd2VAgH6w2lGCQ+YZQpNzTUhLvFg==;5:KymwxP59DT0oEA6SyJiAUXDpW1+X6iZHY4FdRbZZH2myP0zl36hsCybjZ/K813q2OT5kT2gNqcUexfbeEQCsys7gYlUO0IEhOLknWzLKxHH+VYJAI6Mzkf+k3spU+qy0toIfNRuzMlVVG350abh0GQ==;24:sSp8rztK7yAKus5MTKp+CoWA+ZFfX7V7NaVfi/SB7vkl73iY2C1XvHPUyJzFE2YEFDpTJZnrAzDprwIr4B7B5301oIYlbD98nGjEv3Aihx8= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(42134001)(42139001);SRVR:ME1PR01MB0019; x-ms-office365-filtering-correlation-id: 91a185a1-a70b-4dd5-9747-08d31d0702f1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015012)(82015046);SRVR:ME1PR01MB0019;BCL:0;PCL:0;RULEID:;SRVR:ME1PR01MB0019; x-forefront-prvs: 08213D42D3 x-forefront-antispam-report: SFV:NSPM;SFS:(7070004)(98900002);DIR:OUT;SFP:1901;SCL:1;SRVR:ME1PR01MB0019;H:ME1PR01MB0020.ausprd01.prod.outlook.com;FPR:;SPF:None;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_ME1PR01MB00206AACB5FE319200AF7779B0CC0ME1PR01MB0020ausp_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jan 2016 17:20:33.9173 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: ME1PR01MB0019 X-OriginalArrivalTime: 14 Jan 2016 17:20:40.0447 (UTC) FILETIME=[E44718F0:01D14EEF] Subject: Re: [PHP-DEV] RFC proposal for alternative list syntax From: julianrhind@outlook.com (Julian Rhind) --_000_ME1PR01MB00206AACB5FE319200AF7779B0CC0ME1PR01MB0020ausp_ 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_ME1PR01MB00206AACB5FE319200AF7779B0CC0ME1PR01MB0020ausp_--