Closed Jack-Works closed 2 years ago
See the readme:
return
is allowed even within function parameter lists, as in functionf(x = do { return null; }) {}
.
Hmm, can we ban it? It seems like break
or continue
in the for
loop heads. And it's also hard to implement as the method in #63
The problem is that you'd need different rules just for when the do expression is used in default parameter position. Whereas the restrictions to break and continue apply to all do blocks.
The problem is that you'd need different rules just for when the do expression is used in default parameter position. Whereas the restrictions to break and continue apply to all do blocks.
Can you give an example? I didn't catch your meaning
implemented
Is this allowed?