tc39 / proposal-do-expressions

Proposal for `do` expressions
MIT License
1.11k stars 14 forks source link

Update readme / spec text to match version presented in 2020/2021 #54

Closed bakkot closed 3 years ago

bakkot commented 3 years ago

I'm going to take over as champion of this proposal. I've added spec text and made a couple of changes from the original semantics, including most notably some restrictions on which statements can end a do, in the hopes of addressing https://github.com/tc39/proposal-do-expressions/issues/21, and a prohibition on break, continue, and return crossing the boundary of the do.

Note that this did not achieve stage 2 as presented, and hence will necessarily be changed again before it advances to stage 2, likely in ways that bring it closer to the original proposal. But I wanted to update this repository to match the most recent presentation, which was based on my fork of the repository.

You can see the slides for my most recent presentation here.