Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103478 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 80023 invoked from network); 22 Nov 2018 11:54:50 -0000 Received: from unknown (HELO smtp.opensides.be) (195.154.20.141) by pb1.pair.com with SMTP; 22 Nov 2018 11:54:50 -0000 Received: from localhost (localhost [127.0.0.1]) by smtp.opensides.be (Postfix) with ESMTP id 6DEE1FA147 for ; Thu, 22 Nov 2018 09:17:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at opensides.be Received: from smtp.opensides.be ([127.0.0.1]) by localhost (smtp.opensides.be [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ndv_uJi9sx2T for ; Thu, 22 Nov 2018 09:17:07 +0100 (CET) Received: from mcmic-probook.opensides.be (63.120.199.77.rev.sfr.net [77.199.120.63]) by smtp.opensides.be (Postfix) with ESMTPSA id 319D4F43CF for ; Thu, 22 Nov 2018 09:17:07 +0100 (CET) To: internals@lists.php.net Date: Thu, 22 Nov 2018 09:17:05 +0100 Message-ID: <1673483.yZlzrJ05uf@mcmic-probook> Organization: OpenSides User-Agent: KMail/5.2.3 (Linux/4.9.0-8-amd64; KDE/5.28.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5958941.RV83jEGP7T"; micalg="pgp-sha256"; protocol="application/pgp-signature" Subject: Re: [PHP-DEV] [RFC] Spread Operator in Array Expression From: come@opensides.be (=?ISO-8859-1?Q?C=F4me?= Chilliet) --nextPart5958941.RV83jEGP7T Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Le mercredi 21 novembre 2018, 22:46:42 CET Levi Morrison a =E9crit : > I think we have `+` and `array_merge` already. What we *don't* have is > something that concatenates solely with values and ignores keys, at > least not in a single step. I think `...` can be that operator, > precisely because this is what it does for function calls as well. =46or function calls you cannot use it with non-integer keys, the behavior = is yet to be defined. So if later there are named arguments and ... behaves like array_merge on p= arameters it would be weird to have it behave an other way on arrays. I would make the ... operator behave the same in all places, so in array it= should refuse string key as it does for function calls, for the time being. C=F4me --nextPart5958941.RV83jEGP7T Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEnJSNrcx2T3JL/3cLqGTYw87LDgAFAlv2ZgEACgkQqGTYw87L DgBJmRAApkWmVCoWV600vOfvexk1MsSpH6oc0MQxQbGcFidu6+f+Tn5gICnujt9J UgxFq+rdHgqsYes41qMaEGBwBz6HZDTXkc/j3uxzJwtUtCb8SpRyXok32zLHtPFu y+1SraRuKh6U3ENqZCT21CH15q6cIJbmy+k/qvoOxhnr6r2wckpSz6wK3pCbxAQv Ks71ZkdojZX3u+ZB1KtG2sMUC9EIjF+HeF7SaMiRna5BPioYhYV1I8vB400poTBZ q/i1CYxNnZV0iw26pWW097GXSLc24pEshKj00scXFvKixJS9+UfQI3KKhkmBWRyW bOHx3XpSMDIWIlRP+AOGibsqADiugMOEkUczqzRQxNah/NpQY8l4ZaADYq98Mb1V gadVc5wNGAZStGM9ayrNjQGphtx20Q83qTVkQwErEAxVDQJ24NRxdNJ+nthShEZC hOv8YuXa0eNl6fSZj1hiAcZ2wPL+pleTnMqQr5S+I27FnCYlxeTku34oVtZyeLz3 Bfb+zolOy5gUD8uFLolKlYYpmXizqozKn0Icrx+3t57t96Lb5V1Fei+LT5H5uzsQ d3Hijvp9aNwW9at7xmlPRdhaw7sztwdVOkm9FSTe+ghqaxwlsYv17VEcq6ROu2XX 5WQ9kcE4nl+9B/3pgYhV8s+eOPldjcvgwwSBZBXk11xLI4uaaqo= =w7Zc -----END PGP SIGNATURE----- --nextPart5958941.RV83jEGP7T--