-
Notifications
You must be signed in to change notification settings - Fork 701
Closed
Labels
Milestone
Description
In a language with break-from-block, the continue statement is redundant. Any loop of the form
l: while (C) { ... continue l; ... }
can equivalently be rewritten to
l: while (C) l2: { ... break l2; ... }
While a separate continue statement is useful in user-facing syntax, I see no benefit in having it in Wasm. In particular, since labels are implicit, so there isn't even any encoding overhead in the second form.
I propose removing continue.
Reactions are currently unavailable