Module blog::daily_rfcs::etc::flow_control::_1624_loop_break_value
source · [−]Expand description
Allow loop { ... }
expr returns a value via break value
.
Note
Syntax
Four forms of break will be supported:
break
;break 'label
;break EXPR
;break 'label EXPR
;
where 'label
is the name of a loop
and EXPR
is an expression.
break
and break 'label
become equivalent to break ()
and break 'label ()
respectively.