Is `try` really needed?

I don’t understand it, so it is interesting, not lame :3

I’d rather have

const value = fallible() catch {
   error.A => { ... },
   error.B => { ... },
   else => |e| return e,
}

it’s still coincise and doesn’t result in distortion of the meaning of the keywords, like a try {} would do. catch without payload would just propagate the payload implicitly in the block.

4 Likes