Maybe we need a reflect API to iterate over instance members

Brendan Eich brendan at mozilla.org
Mon Jun 1 17:55:39 UTC 2015


Domenic Denicola wrote:
> However, in the end, what you need to do to get something into the language is to prove that it's a common enough need that it's worth adding complexity to the spec and implementations. This thread is very far from doing that. A better start would be surveying open-source code to find usages of this kind of functionality.

Bingo. "Proof" is a convincing argument, really an empircal study of 
some not-too-small N samples. Kevin Smith's analysis of => utility based 
on cases where functions are verbose and do or do not want `this` bound, 
taking into account concise methods from ES6, is a good example.

/be


More information about the es-discuss mailing list