You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an idea we still want to review and is not necessarily something we
really want to add to NL.
We could add a feature where instead of a while loop always returning void, if
there is at least one break that contains a thunk of code, e.g., break("abc"),
then the whole while loop becomes typed to the type of the code thunk (and any
other breaks which contain code thunks will have to be of the same type, if
some other break is empty, the code thunk is implicitly the default value of
the type of the while loop expression). The thunk would not be evaluated
unless/until after the while loop condition evaluates to false, at which point
the thunk is evaluated and returned.
Original issue reported on code.google.com by [email protected] on 26 Nov 2011 at 2:12
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 26 Nov 2011 at 2:12The text was updated successfully, but these errors were encountered: