rfc:trailing_comma_in_closure_use_list
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:trailing_comma_in_closure_use_list [2020/07/01 17:22] – created tandre | rfc:trailing_comma_in_closure_use_list [2020/07/15 13:27] – Start vote tandre | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PHP RFC: Allow trailing comma in closure use list ====== | + | ====== PHP RFC: Allow trailing comma in closure use lists ====== |
+ | * Version: 0.2 | ||
* Date: 2020-07-01 | * Date: 2020-07-01 | ||
* Author: Tyson Andre < | * Author: Tyson Andre < | ||
- | * Status: | + | * Status: |
* Target Version: PHP 8.0 | * Target Version: PHP 8.0 | ||
- | * Implementation: | + | * Implementation: |
===== Introduction ===== | ===== Introduction ===== | ||
Line 16: | Line 17: | ||
$longArgument, | $longArgument, | ||
$longerArgument, | $longerArgument, | ||
- | $muchLongerArgument, | + | $muchLongerArgument, |
) use ( | ) use ( | ||
$longVar1, | $longVar1, | ||
Line 24: | Line 25: | ||
// body | // body | ||
}; | }; | ||
+ | $longArgs_longVars( | ||
+ | $longArgumentValue, | ||
+ | $obj-> | ||
+ | $obj-> | ||
+ | ); | ||
</ | </ | ||
- | This constructor | + | This closure declaration |
Unfortunately, | Unfortunately, | ||
Line 52: | Line 58: | ||
===== Vote ===== | ===== Vote ===== | ||
- | Yes/No, requiring 2/3 majority | + | Yes/No, requiring 2/3 majority. |
+ | Voting starts 2020-07-15 and ends 2020-07-29. | ||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | ===== Changelog ===== | ||
+ | |||
+ | 0.2: Fix implementation link. | ||
+ | |||
+ | ===== Discussion ====== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// |
rfc/trailing_comma_in_closure_use_list.txt · Last modified: 2020/07/29 18:33 by tandre