rfc:arrow_functions_v2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:arrow_functions_v2 [2019/05/01 08:39] – Accepted nikic | rfc:arrow_functions_v2 [2020/08/01 23:53] (current) – RFC was implemented carusogabriel | ||
---|---|---|---|
Line 6: | Line 6: | ||
* Target version: PHP 7.4 | * Target version: PHP 7.4 | ||
* Implementation: | * Implementation: | ||
- | * Status: | + | * Status: |
===== Introduction ===== | ===== Introduction ===== | ||
Anonymous functions in PHP can be quite verbose, even when they only perform a simple operation. | Anonymous functions in PHP can be quite verbose, even when they only perform a simple operation. | ||
- | Partly this is due to a large amount of syntactic boilerplate, | + | Partly this is due to a large amount of syntactic boilerplate, |
import used variables. This makes code using simple closures hard to read and understand. This RFC | import used variables. This makes code using simple closures hard to read and understand. This RFC | ||
proposes a more concise syntax for this pattern. | proposes a more concise syntax for this pattern. |
rfc/arrow_functions_v2.1556699963.txt.gz · Last modified: 2019/05/01 08:39 by nikic