Re: Block scoping and redeclarations

2011-08-25 Thread Andreas Rossberg
On 25 August 2011 18:57, Brendan Eich wrote: > On Aug 25, 2011, at 6:17 AM, Andreas Rossberg wrote: > >>> There is no "before and after" or "both" here. Hoisting first, with rule 1 >>> enforced; then rule 2 checking. Relative source order of declarations is >>> irrelevant. >> >> Well, only when

Re: Block scoping and redeclarations

2011-08-25 Thread Brendan Eich
On Aug 25, 2011, at 6:17 AM, Andreas Rossberg wrote: >> There is no "before and after" or "both" here. Hoisting first, with rule 1 >> enforced; then rule 2 checking. Relative source order of declarations is >> irrelevant. > > Well, only when you're implicitly assuming a somewhat > non-standard

Re: Contacts API -- attribute order

2011-08-25 Thread Andreas Gal
On Aug 25, 2011, at 7:56 AM, Mark S. Miller wrote: > [+es-discuss] > > On Thu, Aug 25, 2011 at 2:40 AM, Cameron McCormack wrote: > +cc public-script-coord > -cc,+bcc public-device-apis > > On 25/08/11 7:38 PM, Andreas Gal wrote: > We should take this to the WebIDL list then. The order definite

Re: Contacts API -- attribute order

2011-08-25 Thread Mark S. Miller
[+es-discuss] On Thu, Aug 25, 2011 at 2:40 AM, Cameron McCormack wrote: > +cc public-script-coord > -cc,+bcc public-device-apis > > On 25/08/11 7:38 PM, Andreas Gal wrote: > >> We should take this to the WebIDL list then. The order definitely >> matters in practice for interoperability if people

Re: Block scoping and redeclarations

2011-08-25 Thread Andreas Rossberg
On 24 August 2011 18:03, Brendan Eich wrote: > On Aug 24, 2011, at 2:03 AM, Andreas Rossberg wrote: >> On 23 August 2011 21:18, Brendan Eich wrote: >>> I think the rules we have discussed are: >>> >>> 1. Any hoisting of var across let binding the same name (whether explicit, >>> or as in catch b