Re: Globalization API discussion

2011-11-20 Thread Rick Waldron
Ah, yes and agreed. That was definitely not relayed in the message below- thanks for the clarification, the context does make a difference. Rick On Nov 20, 2011, at 1:40 AM, David Herman dher...@mozilla.com wrote: On Nov 19, 2011, at 5:50 PM, Brendan Eich wrote: On Nov 19, 2011, at 2:20

Re: Globalization API discussion

2011-11-20 Thread Brendan Eich
On Nov 20, 2011, at 8:12 AM, Rick Waldron wrote: Ah, yes and agreed. That was definitely not relayed in the message below- thanks for the clarification, the context does make a difference. Destructuring parameters + default values really shine here: function frob(arg1, arg2, {foo = defFoo,

modules, @std, selectively hiding/renaming imports

2011-11-20 Thread Claus Reinke
[btw: http://wiki.ecmascript.org/feed.php still gives me url-encoded links; I thought that was meant to be fixed by a wiki upgrade?] From the early drafts of a standard library http://wiki.ecmascript.org/doku.php?id=harmony:modules_standard it appears we are headed for an

Re: modules, @std, selectively hiding/renaming imports

2011-11-20 Thread Brendan Eich
On Nov 20, 2011, at 2:04 AM, Claus Reinke wrote: [btw: http://wiki.ecmascript.org/feed.php still gives me url-encoded links; I thought that was meant to be fixed by a wiki upgrade?] From the early drafts of a standard library

Re: Globalization API discussion

2011-11-20 Thread Allen Wirfs-Brock
On Nov 20, 2011, at 10:03 AM, Brendan Eich wrote: On Nov 20, 2011, at 8:12 AM, Rick Waldron wrote: Ah, yes and agreed. That was definitely not relayed in the message below- thanks for the clarification, the context does make a difference. Destructuring parameters + default values really

Re: Globalization API discussion

2011-11-20 Thread Brendan Eich
On Nov 20, 2011, at 11:16 AM, Allen Wirfs-Brock wrote: On Nov 20, 2011, at 10:03 AM, Brendan Eich wrote: On Nov 20, 2011, at 8:12 AM, Rick Waldron wrote: Ah, yes and agreed. That was definitely not relayed in the message below- thanks for the clarification, the context does make a

Re: Globalization API discussion

2011-11-20 Thread David Herman
On Nov 20, 2011, at 2:24 PM, Brendan Eich wrote: On Nov 20, 2011, at 11:16 AM, Allen Wirfs-Brock wrote: Actually, I think you would want to say: function frob(arg1, arg2, {foo = defFoo, bar = defBar, baz = defBaz}={}) { Thanks. It may be that for destructuring, in general, we

Re: Globalization API discussion

2011-11-20 Thread Norbert Lindenberg
Thanks for the clarification - this helps. I think however that the constructors of the Globalization API handle this correctly in most cases. The specs for the cases where the options object is not provided (sections /(8|9|10).2.(2|3)/), say the constructors behave as if they had received a

Re: Globalization API: Objects needed?

2011-11-20 Thread Norbert Lindenberg
When a caller of the Globalization API requests a locale or parameter combination that's valid but that the implementation doesn't support, then the implementation falls back to something it does support. The resolvedOptions accessor property of the constructed object provides information on

Re: Globalization API discussion

2011-11-20 Thread Brendan Eich
On Nov 20, 2011, at 1:18 PM, David Herman wrote: I would not add more implicit magic to JS. E4X had junk like this in it, which only ever concealed bugs. I'm of two minds about this. In the abstract, I agree with Brendan; fail-soft conceals bugs. But in reality, our destructuring logic is