On Tue, Mar 24, 2009 at 10:40 AM, Jeremy Orlow <span dir="ltr">&lt;<a href="mailto:jorlow@google.com">jorlow@google.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I really like the idea of some generic yield, though I wonder if there&#39;s some reason it hasn&#39;t been added earlier.  People have been using the setTimeout(..., 0) trick for a while to get around slow script warnings (and general unresponsiveness)...so surely something like this must have come up before?  If so, what were the drawbacks?<div>
<div></div></div></blockquote><div><br>An obvious issue is that you can easily end up with arbitrarily deep nesting and stack overflows.<br><br></div></div>Rob<br>-- <br>&quot;He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all.&quot; [Isaiah 53:5-6]<br>