Re: Rationalizing ASI (was: simple shorter function syntax)

2010-07-27 Thread Garrett Smith
On 7/25/10, Mark S. Miller erig...@google.com wrote: On Sun, Jul 25, 2010 at 11:36 AM, Brendan Eich bren...@mozilla.com wrote: On Jul 25, 2010, at 10:52 AM, Mark S. Miller wrote: The problem is that as long as ASI exists, one will often see working code such as this, since it does usually

Re: Internationalization proposal: some comments...

2010-07-27 Thread Nebojša Ćirić
1. I've added a reference to RFC 4647, and extended constructor to allow lookup. I'll try to make it more strict. 2,3. Locale.getDefault() is not necessary, since we get the default if caller passes * for locale. Same for TimeZone - if caller passes empty time zone parameter we return default

Re: redundant C-style switch; (was: simple shorter function syntax)

2010-07-27 Thread Daniel Friesen
Dmitry A. Soshnikov wrote: ... Also I think JS still has some redundant C-syntax garbage. For example, that break keyword each time in case of a switch -- for what it is there? For what to write several times case-case-case if it's possible to write it once and separate testing operands with

Re: Syntax Proposal: Allow Java-like Object Literals after constructor calls to set properties on created objects.

2010-07-27 Thread Daniel Friesen
Jürg Lehni wrote: On 30 Jun 2010, at 19:13, Brendan Eich wrote: Some of us old-timers were around at Netscape with Norris Boyd when this was designed and added to Rhino. It was not added to SpiderMonkey, though, for not terribly compelling reasons. Do you remember what the reason