ECMA-402 DefaultLocale

2016-05-23 Thread Geoffrey Garen
Hi folks. ECMA-402 lists default locale as an unspecified "implementation dependent behaviour”. In the absence of a specified default locale behavior, can we agree to a de facto or best effort behavior to match the OS’s or browser’s locale and language settings? We’d like Safari and WebKit to

Re: Is it possible to define an array iterator that adjusts to your for-of syntax?

2016-05-23 Thread Renki Ivanko
There could be a protocol for defining the shape of the iterator's returns, but it would need to use functions instead of the loop syntax. I've previously suggested something like: ```js iterator[Symbol.shape] = Symbol.shape.entries ``` Then a generic iteration function supporting this interface

Re: Is it possible to define an array iterator that adjusts to your for-of syntax?

2016-05-23 Thread Jason Orendorff
No, it's not possible. Oddly enough, when this functionality was first prototyped in SpiderMonkey many years ago, the iterator protocol *did* pass a boolean to the __iterator__ method (this was before symbols) based on the syntax you were using to unpack the results. This feature was not super use