Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69294 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4067 invoked from network); 23 Sep 2013 19:37:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2013 19:37:30 -0000 Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain strojny.net from 46.4.40.248 cause and error) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 46.4.40.248 milch.schokokeks.org Received: from [46.4.40.248] ([46.4.40.248:44231] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/F2-25349-A7890425 for ; Mon, 23 Sep 2013 15:37:30 -0400 Received: from lstrojnypro4.fritz.box (ppp-88-217-71-53.dynamic.mnet-online.de [::ffff:88.217.71.53]) (AUTH: PLAIN lars@schokokeks.org, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by milch.schokokeks.org with ESMTPSA; Mon, 23 Sep 2013 21:37:26 +0200 id 0000000000000026.0000000052409877.000075B4 Content-Type: multipart/signed; boundary="Apple-Mail=_607C3A75-12D6-4204-9C91-D09507CE4995"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) In-Reply-To: Date: Mon, 23 Sep 2013 21:37:26 +0200 Cc: PHP internals Message-ID: <69BCC163-7988-4EBB-A817-5F5007EC924C@strojny.net> References: To: Nikita Popov X-Mailer: Apple Mail (2.1510) Subject: Re: [PHP-DEV] Argument unpacking - Multiple unpacks and trailing arguments From: lars@strojny.net (Lars Strojny) --Apple-Mail=_607C3A75-12D6-4204-9C91-D09507CE4995 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi Nikita, Am 23.09.2013 um 21:33 schrieb Nikita Popov : [...] > An example of trailing arguments are array intersections and diffs = using a > custom compare function: >=20 > array_uintersect(...$arrays, $compare); > array_udiff(...$arrays, $compare); > // also array_intersect_uassoc and all those other variations on = the > topic >=20 > Some people expressed concern about allow both usages (multiple = unpacks / > trailing args). I have a bit of a hard time understanding this (as = there > clearly are practical applications for both), so I'd appreciate some = more > opinions on the topic. Although it might allow users to shoot into their foot, I prefer having = it instead of introducing a limitation that is not technically = necessary. So +1 cu, Lars --Apple-Mail=_607C3A75-12D6-4204-9C91-D09507CE4995 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIVAwUBUkCYdiQPF+sCY6wHAQIZDxAAibksPyfrim0Sozn/kohlVJSo5hXL/WRD CAWx6Bw+YlrCstbco8tE6YY575rcbmnUqvkxf1niQ2FWZeRX6CfZj1RzF+LvqWZf 2d6zwrYoKRYDEj6F9rGnK2CE4cSP8urPcpiTTv1zWBuEPEGrbjzyUKU3XFplDE9e kZus/rueHWmwWsDaMQQzfSeExg/aBz3K1O73CtGV3S/5URKedJKTS0yO9nl5C9LX BE7EO34vUNuLH1BuX+w/Gwn0z1p5XDLIk7Io1eQBEpU9qMSQrwxHVmb0Yb3LopQ5 jm11du/fYRuFHvuyDDVfSYUoMX8CYPF3LP3soGktwqr9Zba6Yjw8FJb3n+hqQT5Q OrpKyiLA/9g104fI+VeAkrtCvqY5lZvjjWMIi/jZA+nM77TqLzfaiyhIGg2OAUL0 ZStfeDOyZnEXFUb07jZmEOysQ38Lon5rgYYjVaiDLTE4NKMka7F0ZUCD2eYRMmup ZW0kOhI+cJnqc/HN++LepJ1kUuH5i7SvusO863gmf84bLoi5zZQ13dMjMD4YsWD5 ATQcE2yku/YxHS8iitEnjr0BCYwRWL50Fts/hegk9D1x7vDRzD2C1l8h4YPG+wpf GkKMuva79EjPrAdF5+NCaTdGRJfFSldia2aVilWdCXj/+hAQZwYUz6GDsO61GUGu MbJjDPnROA4= =7Qr2 -----END PGP SIGNATURE----- --Apple-Mail=_607C3A75-12D6-4204-9C91-D09507CE4995--