Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83525 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21038 invoked from network); 23 Feb 2015 01:40:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2015 01:40:34 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.45 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.45 mail-pa0-f45.google.com Received: from [209.85.220.45] ([209.85.220.45:40321] helo=mail-pa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/84-33016-2158AE45 for ; Sun, 22 Feb 2015 20:40:34 -0500 Received: by paceu11 with SMTP id eu11so23513699pac.7 for ; Sun, 22 Feb 2015 17:40:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=7K6n20t18Xz4uqHHlILr/g2WUWWwVbQCBUPpTOLPMMI=; b=IKGz/5X7EECkxx/q0ztG+fUFnRxyolkrE+mQdVJqX70i/mNdsIFXgeEQhe0iRYGNhF DzpPjrA6EXzc+NdouIn/KG7fykNxlp5e4I5WCczD+9aFuS68BrPUN9DW1xGQZABokD2S 7s2p04ZwWm1ActhEwDNoIyrx8J8AA/7boA/rFm7ycE8QpkL4TrI+c1op5sYWRu8dvfe0 81giMP4qmuqTsYFbVvmmAyIHDzO0Z6e09HZQfEGUeeJ2NGJNk3FcFks8Focb9itIp7Nd Iqm67AcMSFPqFM7wHaobtyTYIAwGV9NmUVlopYvE67R4LcZBWgJOAmMjVIBT8gdCGY2A l7nQ== X-Received: by 10.66.251.2 with SMTP id zg2mr14938689pac.89.1424655631846; Sun, 22 Feb 2015 17:40:31 -0800 (PST) Received: from [192.168.2.145] (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id px9sm17500459pbb.48.2015.02.22.17.40.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Feb 2015 17:40:31 -0800 (PST) Message-ID: <54EA850E.7010301@gmail.com> Date: Sun, 22 Feb 2015 17:40:30 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Niktia Nefedov , "internals@lists.php.net" References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Allow to use argument unpacking at any place in arguments list From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > This makes it impossible to use this feature with some of the ext/std > functions (array_udiff, array_interect_ukey, etc.) and just feels a bit > incomplete... I see how it can be useful with crazy functions like array_udiff, but these are in tiny minority. What I am concerned about is that besides those functions - which are weird anyway - code like foo($a, ...$b, $c) would be completely unmanageable as it would be impossible to know where $c is actually going. I think the case for weird array functions is pretty narrow and can be handled in ad-hoc manner without introducing this construct. > I'm not sure if this change requires an RFC because this is a pretty > small, advancement of already existing feature that doesn't contain any It's a new syntax (yes, looking a lot like an old one, but still new), so I think it requires an RFC. -- Stas Malyshev smalyshev@gmail.com