Re: [RFC] Partial function application

From: Date: Sat, 15 May 2021 00:15:26 +0000
Subject: Re: [RFC] Partial function application
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-114480@lists.php.net to get a copy of this message
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

Thread (68 messages)

« previous php.internals (#114480) next »