On Jun 16, 2014, at 11:29 AM, Michael Zhou wrote:
> Thanks for the clarification, one detail about the order between incrementing
> and setting $$lastIteration_i:
> {
>let i = $$lastIteration_i; //create and initialize per iteration i
>if (!(i<10)) break;
> {
> let i;
>}
>
Thanks for the clarification, one detail about the order between
incrementing and setting $$lastIteration_i:
{
let i = $$lastIteration_i; //create and initialize per iteration i
if (!(i<10)) break;
{
let i;
}
*i++;
$$lastIteration_i = i;*
}
Should it be*
$$lastIteratio
On 13 June 2014 18:23, Allen Wirfs-Brock wrote:
> We could consider special cases loop bodies that are BlockStatements and
> statically reject those that contain declaration that shadow the loop
> declarations. However, I think it is probably best to leave that sort of
> check for linters to p
On Jun 12, 2014, at 12:50 PM, Michael Zhou wrote:
> In other words, is
> for (let i = 0; i < 10; i++) {
> let i;
> }
>
> legal? I feel it is, but I'm not sure if the specs has made that clear.
> Thanks!
The above is legal according to the current ES6 spec. draft. The let in the
loop body b
In other words, is
for (let i = 0; i < 10; i++) {
let i;
}
legal? I feel it is, but I'm not sure if the specs has made that clear.
Thanks!
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
5 matches
Mail list logo