<br><br><div class="gmail_quote">On Sat, Oct 13, 2012 at 8:17 PM, Greg Ewing <span dir="ltr"><<a href="mailto:greg.ewing@canterbury.ac.nz" target="_blank">greg.ewing@canterbury.ac.nz</a>></span> wrote:<br><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But at least you can *see* from the presence of the 'yield'<br>
that suspension can occur.<br>
</blockquote><div> <br>...<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">He argues there that greenlet-style coroutines are bad because<br>
suspension can occur anywhere without warning. He likes<br>
generators better, because the 'yield' warns you that suspension<br>
might occur. Generators using 'yield from' have the same property.<br>
<br>
If his proposal involves marking the suspension points somehow, then<br>
syntactically it will probably be very similar to yield-from.<span class="HOEnZb"><font color="#888888"></font></span><br></blockquote><div><br>Explicit suspension is certainly better than hidden suspension, yes. But by extension, no suspension at all is best.<br>
</div></div>