Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89915 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12463 invoked from network); 28 Dec 2015 20:58:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Dec 2015 20:58:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=julianrhind@outlook.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julianrhind@outlook.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain outlook.com designates 65.54.190.217 as permitted sender) X-PHP-List-Original-Sender: julianrhind@outlook.com X-Host-Fingerprint: 65.54.190.217 bay004-omc4s15.hotmail.com Received: from [65.54.190.217] ([65.54.190.217:53139] helo=BAY004-OMC4S15.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/37-51216-A82A1865 for ; Mon, 28 Dec 2015 15:58:50 -0500 Received: from APC01-PU1-obe.outbound.protection.outlook.com ([65.54.190.201]) by BAY004-OMC4S15.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Mon, 28 Dec 2015 12:58:47 -0800 Received: from MEXPR01MB0023.ausprd01.prod.outlook.com (10.162.50.145) by MEXPR01MB0023.ausprd01.prod.outlook.com (10.162.50.145) with Microsoft SMTP Server (TLS) id 15.1.361.13; Mon, 28 Dec 2015 20:58:45 +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; Mon, 28 Dec 2015 20:58:44 +0000 To: Kris Craig , Pierre Joye CC: PHP internals list , Stanislav Malyshev Thread-Topic: [PHP-DEV] RFC proposal for alternative list syntax Thread-Index: AQHRQODZJwgbuqA/ukmiFiYQxQmGFZ7feKQAgABNEICAABztgIAA+PsG Date: Mon, 28 Dec 2015 20:58:44 +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: [9cLqPRllUzmNjrXlvVXrOcjxMGkW28AuJpthmSn2vuA=] x-microsoft-exchange-diagnostics: 1;MEXPR01MB0023;23:Cg5j5blio91o4uNeFOVoNzeJW85RPbDde8VQepWhk4JBhJGPRybwI7yZ4YjKBPPuv6W9z455x3paNvjU1+Aws5ky5Sx8z2ssA+D68F8l1ov9ZieY9eanD8/KpHdAC6ldx9Wgn2KZmfd6l8ML74LT1N88vqznsUAzjcNAZXNhyGCIhTrquRE9Q9VQUm7UxjOLQM8l3LPiergF7rJtPgJqyA==;5:bQGD0mbQwh0fFDd7m/J3MxtR5RRPKUrJFV9RFhbczMkiMg/cGYUKyhKVCZlp4+TLtTdTH2HQdyqlgUbLOM61cZtWO5LXQJ4BzixLRsC11pAUU9BS5cUcMpOFbwnz0lSz4/tJhekCIxa3tmvyg3eOAw==;24:QBDwSQ2TgDrf+9mpI2wn6FEgWXu6BPaiQe3XJNgoIDqCNvL+8Wp7UuP57yT5hPh2oUcthadY0yBpLpEklXGoYq4iuzIftad42NfDuJkiEh0= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(42134001)(42139001);SRVR:MEXPR01MB0023; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015012)(82015046);SRVR:MEXPR01MB0023;BCL:0;PCL:0;RULEID:;SRVR:MEXPR01MB0023; x-forefront-prvs: 08041D247D x-forefront-antispam-report: SFV:NSPM;SFS:(7070004)(98900002);DIR:OUT;SFP:1901;SCL:1;SRVR:MEXPR01MB0023;H:MEXPR01MB0023.ausprd01.prod.outlook.com;FPR:;SPF:None;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_MEXPR01MB002314A940965FF79E53EA85B0FB0MEXPR01MB0023ausp_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2015 20:58:44.0444 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: MEXPR01MB0023 X-OriginalArrivalTime: 28 Dec 2015 20:58:47.0833 (UTC) FILETIME=[8BF1F890:01D141B2] Subject: Re: [PHP-DEV] RFC proposal for alternative list syntax From: julianrhind@outlook.com (Julian Rhind) --_000_MEXPR01MB002314A940965FF79E53EA85B0FB0MEXPR01MB0023ausp_ 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_MEXPR01MB002314A940965FF79E53EA85B0FB0MEXPR01MB0023ausp_--