Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89903 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50468 invoked from network); 27 Dec 2015 23:36:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Dec 2015 23:36:52 -0000 Authentication-Results: pb1.pair.com header.from=php@tutteli.ch; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@tutteli.ch; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tutteli.ch designates 80.74.154.80 as permitted sender) X-PHP-List-Original-Sender: php@tutteli.ch X-Host-Fingerprint: 80.74.154.80 hyperion2.kreativmedia.ch Linux 2.6 Received: from [80.74.154.80] ([80.74.154.80:49958] helo=hyperion2.kreativmedia.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/10-51216-21670865 for ; Sun, 27 Dec 2015 18:36:52 -0500 Received: from RoLaptop (adsl-89-217-37-39.adslplus.ch [89.217.37.39]) by hyperion2.kreativmedia.ch (Postfix) with ESMTPSA id EA031DCE8099; Mon, 28 Dec 2015 00:36:46 +0100 (CET) To: "'Stanislav Malyshev'" , "'Julian Rhind'" , References: <56807248.4060609@gmail.com> In-Reply-To: <56807248.4060609@gmail.com> Date: Mon, 28 Dec 2015 00:36:44 +0100 Message-ID: <00d301d140ff$72cd7280$58685780$@tutteli.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKjs/Y72tKxkL8eMcSTgp61+gJ+4QH208WYnSrgG+A= Content-Language: de-ch Subject: AW: [PHP-DEV] RFC proposal for alternative list syntax From: php@tutteli.ch ("Robert Stoll") Hi, > -----Urspr=FCngliche Nachricht----- > Von: Stanislav Malyshev [mailto:smalyshev@gmail.com] > Gesendet: Montag, 28. Dezember 2015 00:21 > An: Julian Rhind; internals@lists.php.net > Betreff: Re: [PHP-DEV] RFC proposal for alternative list syntax >=20 > Hi! >=20 > > // 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]; >=20 > list() and array() are two different language constructs, using the = same syntax for them is a bad idea. >=20 > -- > Stas Malyshev > smalyshev@gmail.com >=20 > -- > PHP Internals - PHP Runtime Development Mailing List To unsubscribe, = visit: http://www.php.net/unsub.php To me it looks pretty much like pattern matching and I would like to see = pattern matching in PHP. Maybe we need to add a little bit more syntax to distinguish it from normal array usage but I = like the idea.