top | item 46336450

(no title)

skribanto | 2 months ago

Why couldnt you flatten it?

discuss

order

dzaima|2 months ago

You have three different value cases (main value, main Err case for `?` to consume, and whatever early-return case). And the `?` operator fully taking up the Err result case means your main-result+early-return values strictly must both be wrapped in an Ok.