Good, so a $break-like mechanism is possible then, just moved out a
On Aug 27, 10:49 pm, Tobie Langel <tobi...@gmail.com> wrote:
*blech* to ES5's enumerable stuff not having $break or similar
functionality. I've just read the forEach section of the draft spec
from a while back, and I'm not seeing a discussion of exception
handling. I haven't delved deep, though -- do you know offhand how
exceptions in the callback function are handled? E.g, can one
implement one's own $break handling, or are exceptions eaten?
Exceptions aren't eaten.
Re setInterval and setTimeout, how do you see implementing #delay or
similar without using them?
Or do you not see it, e.g., a pure LANG
version of Prototype wouldn't have Function#defer.
Maybe Function#defer would be defined only if window.setTimeout was