Variants of this (e.g. break ok
, fail err
, reta
) have already been proposed. In that thread it seems like there are mixed feelings about such extensions.
So if you’re proposing a similar thing, it’d be worthwhile to address concerns already raised (how does it work with async
wrapping? Does it work with try
blocks? Does it work with the Try
trait?), what new your proposal brings, and why this variant is better than others.