<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 4, 2013 at 11:57 AM, Matt Brubeck <span dir="ltr"><<a href="mailto:mbrubeck@mozilla.com" target="_blank">mbrubeck@mozilla.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
To be fair, JavaScript is already littered with hazards like this. For example, I often find myself reading code structured like this and wondering whether it will print "12" or "21":<br>
<br>
addEventListener("foo", event => dump("1"));<br>
doSomethingThatTriggersFoo();<br>
dump("2");<br>
<br>
...which is not to say that we should leave such hazards around if we can avoid it.  But if we can't avoid it (or don't want to for some compelling reason), at least experienced JS programmers will be used to dealing with the consequences.  :/</blockquote>
</div><br></div><div class="gmail_extra">Sure, but for the most part you can test, see which behavior is actually happening, and mostly trust that it's not a *designed part of the feature you're using* that it might change.<br>
<br>-dave<br></div></div>