I also miss these from C++, especially the if form. I also agree that we do not want the do-while form of this.
On Fri, Nov 29, 2013 at 1:49 PM, Brendan Eich <[email protected]> wrote: > Nick Krempel wrote: >> >> Slight correction: bring in line with "for in" and "for of" only - since >> the condition part of the "for" does not allow this currently. > > > Right, and for (let...;;) has (consensus reconfirmed last meeting) a fresh > let binding per iteration (and one for the pre-loop scope if there's a > closure in the first part of the head that captures a let binding -- turns > out Dart does the same thing). > > It's too late for ES6, but if (let ...), while (let ...), and switch (let > ...) seem unproblematic to consider for ES7. I like them, we've talked about > them more "off" than "on" over the years, I'm not sure why they never gained > a champion. > > "do {...} while (let ...);" is troublesome, though -- the condition is at > the bottom but the binding would be hoisted to the "do". Yes, it can be made > to work, but the return of hoisting, no TDZ, smells. I'd skip it. > > /be > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss -- erik _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

