Den 2021-06-02 kl. 22:16, skrev Mike Schinkel:
On Jun 2, 2021, at 1:45 PM, Larry Garfield <la...@garfieldtech.com> wrote:

Hi folks.  After much off-list discussion, iteration, and consideration, we 
have a new draft of PFA ready for review.

The URL is the same:

https://wiki.php.net/rfc/partial_function_application

Really excellent work, all!

It's a bit long because we wanted to be as precise as possible.  However, in 
short:

* Partial application creates a closure object you can use like any other.
* A ? indicates "exactly one required parameter here"
* A ... indicates "zero or more parameters here"

My only comment/request/suggestion is to consider Mark Randall's suggestion to 
use `...?` instead, for the reasons he mentioned in his email to the list:

https://externals.io/message/114157#114666 
<https://externals.io/message/114157#114666>

Plus Levi Morrison seemed to approve:

https://externals.io/message/114157#114667 
<https://externals.io/message/114157#114667>

-Mike


I second this opinion. So is the "...?" syntax something that will
be considered?

r//Björn Larsson

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to