rfc:generator-delegation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:generator-delegation [2015/03/09 19:51] – fixed bad javascript syntax reference rdlowrey | rfc:generator-delegation [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Author: Daniel Lowrey < | * Author: Daniel Lowrey < | ||
* Contributors: | * Contributors: | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 75: | Line 75: | ||
$send = false; | $send = false; | ||
} else { | } else { | ||
- | | + | throw $e; |
} | } | ||
} | } | ||
Line 333: | Line 333: | ||
while($shared-> | while($shared-> | ||
$delegator = delegator($shared); | $delegator = delegator($shared); | ||
- | while($delegator-> | + | |
- | var_dump($delegator-> | + | foreach |
+ | var_dump($value); | ||
+ | } | ||
+ | var_dump($delegator-> | ||
+ | |||
+ | /* | ||
+ | int(42) | ||
+ | // This is our only output because no values are yielded | ||
+ | // from the already-completed shared subgenerator | ||
+ | */ | ||
</ | </ | ||
Line 374: | Line 383: | ||
==== Error States ==== | ==== Error States ==== | ||
- | There are two scenarios in which '' | + | There are two scenarios in which '' |
* Using '' | * Using '' | ||
Line 382: | Line 391: | ||
===== Rejected Ideas ===== | ===== Rejected Ideas ===== | ||
- | The original version of this RFC proposed a '' | + | The original version of this RFC proposed a '' |
- | '' | + | '' |
- | form was considered | + | form was considered less readable |
Line 477: | Line 486: | ||
- | ===== Proposed Voting Choices | + | ===== Vote ===== |
- | + | ||
- | Two voting choices are proposed†: | + | |
- | * **YES**, | + | A 2/3 " |
- | * **NO**, do not modify existing Generator behavior | + | <doodle title=" |
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
- | A 2/3 " | + | . |
- | †: The success of this vote depends on the success of the accompanying [[rfc: | + | The success of this vote depends on the success of the accompanying [[rfc: |
- | Should Generator Return Expressions be rejected the voting outcome of this RFC will be rendered moot. | + | |
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
- | The current patch is approaching | + | The current patch is considered |
https:// | https:// |
rfc/generator-delegation.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1