January 15, 2012 3:51 AM
Brendan Eich wrote:
More when I reply to Axel in a bit.
I think there may have been a misunderstanding. My proposed solution
amounts to syntactic sugar over the existing strawman and makes
break/continue work intuitively with loopy block lambdas, and your
reply to Axel appears to be against an exception-based version, but
you seem to have (implicitly) tied them together.

That's right, because I don't see how your proposal can work without exceptions. You write that it is yntactic sugar. Ok, what is the desugaring? How does

for arr.ForEach { |o|
  if (...) break;
}

And it still works, without needing to throw exceptions or alter the
existing library code.
translate into JS without a throw that the implementation of arr.forEach, which is not modfiied by this for-prefixed invocation, can catch?

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to