for own(...) loop (spin-off from Re: for..in, hasOwnProperty(), and inheritance)

David Herman dherman at mozilla.com
Wed Nov 9 13:57:28 PST 2011


On Nov 9, 2011, at 1:33 PM, Quildreen Motta wrote:

> On 09/11/11 19:20, Brendan Eich wrote:
>> 
>>> And if you need to break out of forEach, just, umm, don't use forEach. It's the wrong tool for the job.
>> 
>> Clearly people like the forEach array extra in conjunction with Object.keys. With block-lambdas they could have their cake and break from it too (and the call would be paren-free to boot).
>> 
> That sounds like something to look forward to.

I agree! :)

> Though, did TC39 reach a consensus on having or not block-lambdas or just a shorter function syntax?

It's still a topic of discussion, not on the ES6 plate but ongoing work.

Dave



More information about the es-discuss mailing list