Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114480 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 39188 invoked from network); 15 May 2021 00:06:48 -0000 Received: from unknown (HELO localhost.localdomain) (76.75.200.58) by pb1.pair.com with SMTP; 15 May 2021 00:06:48 -0000 To: internals@lists.php.net References: <1565EB81-57B7-49B0-A47C-342E0088A432@trowski.com> <532D1413-52FF-4403-A20B-BBDB51163C85@trowski.com> <77e233b3-8046-4992-83e4-675d26712091@www.fastmail.com> Date: Sat, 15 May 2021 01:15:26 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <77e233b3-8046-4992-83e4-675d26712091@www.fastmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Posted-By: 87.81.129.66 Subject: Re: [PHP-DEV] [RFC] Partial function application From: marandall@php.net (Mark Randall) Message-ID: On 15/05/2021 01:00, Larry Garfield wrote: > I can't speak for the others, but I could tolerate making "more than one extra ? beyond the end of the parameter list is an error", potentially, as at that point they're redundant. But if a function has, say, 4 params, then fourParams(1, 3, ?) is a convenient way to say "and placeholder everything else". Fortunately, we already have an existing and recognised way of saying "and everything else" https://www.php.net/manua/en/functions.arguments.php#functions.variablearg-list