rfc:loop_or

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
rfc:loop_or [2014/09/20 14:32] leighrfc:loop_or [2014/10/10 06:49] leigh
Line 2: Line 2:
   * Version: 1.0   * Version: 1.0
   * Date: 2014-09-19   * Date: 2014-09-19
-  * Author: Leigh, leight -> gmail +  * Author: leigh@php.net 
-  * Status: Under Discussion+  * Status: Voting
   * First Published at: http://wiki.php.net/rfc/loop_or   * First Published at: http://wiki.php.net/rfc/loop_or
  
Line 143: 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 154: 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 168: 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="Loop + or control structure in PHP 7" auth="leigh" voteType="single" closed="true">
 +   * Yes
 +   * No
 +</doodle>
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
-A proof of concept is being worked on by Leigh - ''while'' and ''for'' are working ''foreach'' currently segfaulting+[[https://github.com/lt/php-src/compare/loop-or|Proof of concept]] no tests yet.
  
 ===== Implementation ===== ===== Implementation =====
Line 192: Line 194:
  
 ===== Changelog ===== ===== Changelog =====
-2014-09-19 v1.RFC created+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-20 - Added details that templating engines emulate this behaviour
 +
 +2014-09-19 - v1.0 - RFC created
 +
rfc/loop_or.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1