`do` expression conflicting with `do ... while` grammar?
Isiah Meadows
isiahmeadows at gmail.com
Mon Feb 22 16:42:17 UTC 2016
I'm interested in where the (stage 1?) proposal is as well.
On Mon, Feb 22, 2016, 11:38 Bradley Meck <bradley.meck at gmail.com> wrote:
> how will people distinguish `do ... while` from `do` expressions? I tried
> to find the exact grammar but couldn't after a bit of searching.
>
> For example in current JS,
>
> ```
> do {
> console.log(1);
> }
> while (true);
> ```
>
> would cause infinite number of `console.log`s. But if the `do` is seen as
> an expression statement it would only log once.
>
> Any pointer to where the grammar is discussed would be quite helpful.
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160222/6c5a9212/attachment.html>
More information about the es-discuss
mailing list