rfc:loop_or
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:loop_or [2014/09/19 21:39] – created leigh | rfc:loop_or [2014/10/03 20:25] – Open vngoti leigh | ||
---|---|---|---|
Line 2: | Line 2: | ||
* Version: 1.0 | * Version: 1.0 | ||
* Date: 2014-09-19 | * Date: 2014-09-19 | ||
- | * Author: | + | * Author: |
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 47: | Line 47: | ||
Alternate syntax loops also gain this functionality with a '' | Alternate syntax loops also gain this functionality with a '' | ||
- | This type of behaviour has been suggested before | + | This type of behaviour has been suggested before |
+ | |||
+ | The originally | ||
* Not backwards compatible by default due to dangling '' | * Not backwards compatible by default due to dangling '' | ||
Line 141: | Line 143: | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
- | PHP.next (whether next is 7.0 or 5.7) | + | PHP 7 |
===== RFC Impact ===== | ===== RFC Impact ===== | ||
Line 152: | Line 154: | ||
==== To Opcache ==== | ==== To Opcache ==== | ||
TODO - There may be an impact here, but any patch will review Opcache. This section needs commentary from internals. | TODO - There may be an impact here, but any patch will review Opcache. This section needs commentary from internals. | ||
- | |||
- | ===== Open Issues ===== | ||
- | None | ||
===== Unaffected PHP Functionality ===== | ===== Unaffected PHP Functionality ===== | ||
Line 166: | Line 165: | ||
There may be an opporunity to support the python style loop+else, but this will require a new keyword to preserve dangling else backward compatibility | There may be an opporunity to support the python style loop+else, but this will require a new keyword to preserve dangling else backward compatibility | ||
- | ===== Proposed Voting Choices | + | ===== Vote ===== |
This is a language change and requires a 2/3 majority in favour of the feature. | This is a language change and requires a 2/3 majority in favour of the feature. | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
- | A proof of concept | + | [[https:// |
===== Implementation ===== | ===== Implementation ===== | ||
Line 190: | Line 194: | ||
===== Changelog ===== | ===== Changelog ===== | ||
+ | 2014-09-21 - Added proof of concept patch link. | ||
+ | |||
+ | 2014-09-20 - Changed target version to PHP 7 | ||
+ | |||
+ | 2014-09-20 - Added details that templating engines emulate this behaviour | ||
+ | |||
2014-09-19 - v1.0 - RFC created | 2014-09-19 - v1.0 - RFC created | ||
rfc/loop_or.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1