rfc:list_reference_assignment
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:list_reference_assignment [2017/02/06 17:22] – bp1222 | rfc:list_reference_assignment [2017/12/09 12:43] (current) – Implemented nikic | ||
---|---|---|---|
Line 6: | Line 6: | ||
* Original Date: 2013-10-24 | * Original Date: 2013-10-24 | ||
* Original Author: Andrea Faulds, ajf@ajf.me | * Original Author: Andrea Faulds, ajf@ajf.me | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 88: | Line 88: | ||
- | The predominant advantage of adding support for this is that it allows you to use reference assignment for multiple variables at once, which is not currently possible. The syntax here is different from the traditional assignment syntax which places the ''&'' | + | The predominant advantage of adding support for this is that it allows you to use reference assignment for multiple variables at once, which is not currently possible. The syntax here is different from the traditional assignment syntax which places the ''&'' |
The RFC also takes into account the possibility of objects being the r-val of the assignment implementing ArrayAccess. | The RFC also takes into account the possibility of objects being the r-val of the assignment implementing ArrayAccess. | ||
Line 133: | Line 133: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | Will require | + | Voting starts on 2017-02-06 17:30 UTC and closes on 2017-02-22 20:00 UTC |
- | <doodle title=" | + | |
+ | 2/3 Vote Required | ||
+ | Vote Yes to allow reference assignments as part of list() assignments | ||
+ | Vote No to maintain current functionality | ||
+ | |||
+ | <doodle title=" | ||
* Yes | * Yes | ||
* No | * No | ||
Line 140: | Line 145: | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
- | * Working Implementation: | + | * Working Implementation: |
* Language Spec: https:// | * Language Spec: https:// | ||
===== Implementation ===== | ===== Implementation ===== | ||
- | Link to commit | + | |
+ | Implemented in PHP 7.3 via https:// | ||
===== References ===== | ===== References ===== |
rfc/list_reference_assignment.1486401729.txt.gz · Last modified: 2017/09/22 13:28 (external edit)