Re: Providing object iterators beyond just Object.keys()

2015-05-27 Thread Rick Waldron
No draft written, but I am the current champion. If you'd like to get something started, we can co-champion :) Rick On Tue, May 26, 2015 at 2:45 PM Michael Ficarra mfica...@shapesecurity.com wrote: Has anyone drafted a proposal for this? Is anyone assigned as champion yet? On Tue, May 26,

Re: why not just import new language into browser?

2015-05-27 Thread duanyao
在 2015年05月27日 23:01, 李白|字一日 写道: 2015-05-27 2:18 GMT+08:00 duanyao duan...@ustc.edu mailto:duan...@ustc.edu: 在 2015年05月26日 11:13, eric 写道: I would like to suggest a language neutro interface for all languages inside all browsers. Web APIs are defined in WebIDL,

Re: why not just import new language into browser?

2015-05-27 Thread Thaddee Tyl
On Wed, May 27, 2015 at 5:01 PM, 李白|字一日 calid...@gmail.com wrote: Web Api, Native Client are all the efforts made to make the browser side to be a platform other than HTML + CSS + JAVASCRIT Parser. Web API (by which I assume you mean the APIs defined in the W3C and WHATWG standards) is

Re: why not just import new language into browser?

2015-05-27 Thread 李白|字一日
2015-05-27 2:18 GMT+08:00 duanyao duan...@ustc.edu: 在 2015年05月26日 11:13, eric 写道: I would like to suggest a language neutro interface for all languages inside all browsers. Web APIs are defined in WebIDL, which is language neutro. However I don't think the implementations of those APIs in

Re: Providing object iterators beyond just Object.keys()

2015-05-27 Thread Emanuel Allen
You can simply use the Symbol.iterator property to configure how you want the property and value of the object to be iterated. This will allow you to use any from of iteration; e.g. For loop while loop forEach if you do the generic way I'm thinking . If this help. Post me some link to

Re: Class decorators and async process

2015-05-27 Thread Brendan Eich
Alexandre Louis Marc Morgaut wrote: Sync is out of bounds in browsers, and for Node.js apart from require -- a rift indeed between the two embeddings. Just to be fair, Sync is still appreciated in some situations in JS like - in Dedicated Workers, Good point. Still not in specs but proposed

Re: why not just import new language into browser?

2015-05-27 Thread Brendan Eich
I would like to suggest that everyone let this thread die. It's way out of scope for es-discuss, and three kinds of bogus just considering the Subject: line. If anyone wants to chat about it, HN has regular recurring why not blub? and why not bytecode threads. /be (co-moderator with @awbjs)

Re: Class decorators and async process

2015-05-27 Thread Alexandre Louis Marc Morgaut
On 26 May 2015, at 01:09, Brendan Eich bren...@mozilla.org wrote: Gray Zhang wrote: It’s OK, I just wait for |this.weapon| to resolve, but then my |hit| method becomes async, and everything based on |@inject| property should be async, which is not actually what I want. Async can