tc39 / proposal-do-expressions

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

allow return, break, and continue #59

Closed bakkot closed 3 years ago

bakkot commented 3 years ago

This switches to allowing return, etc, to cross the boundary of the do. I'm landing this now, but we can continue discussing it.

See also https://github.com/tc39/proposal-do-expressions/issues/30.

Jack-Works commented 3 years ago

🤔 thinking for another perspective I think we should not allow control flow changes in an expression and it slightly make transpile harder