The elevator pitch for the RFC. The first paragraph of this section will be rendered slightly larger to give it emphasis.
Please write an introduction that helps people by providing concise context and include a representative small code snippet.
<?php echo "Showcase your idea here"; ?>
All the features and examples of the proposal.
To paraphrase Zeev Suraski, explain how the proposal brings substantial value to be considered for inclusion in one of the world's most popular programming languages.
Please clearly specify the desired syntax and semantics of your proposal, for example the interactions with existing PHP functionality, and please mention all edge cases, including potential gotchas.
Include stubs for newly introduced functions classes and constants, including namespaces and types.
<?php namespace Example\Component { final class NewAddition { public static function fromString(string $example): self {} } } ?>
Simple example:
<?php $dates = [ new DateTimeImmutable('now'), ]; $formattedDates = array_map(DateTimeImmutable::format($this: ?, "c"), $dates); ?>
None. The proposed syntax currently is a syntax error.
Next PHP 8.x (8.6).
Partial Function Application itself is not yet released and it is unlikely that the ecosystem already adapted to it. Thus this additional proposal only has a small incremental impact, most notably by the new $this: named parameter which is “magic” in that it does not refer to an actual parameter name, contains the leading dollar-sign ($) and may appear at the start of the argument list before all positional parameters.
None.
None.
None.
None.
Primary Vote requiring a 2/3 majority to accept the RFC:
Links to proof of concept PR.
If there is no patch, make it clear who will create a patch, or whether a volunteer to help with implementation is needed.
After the RFC is implemented, this section should contain:
None.