โ‰ˆ the.bay.news

Is there a better way to run a check for a falliable shortcut and fall back to a normal way?

Ziggit
Is there a better way to run a check for a falliable shortcut and fall back to a normal way?
This seems unreasonably terse _ = blk: { if (hasShortcut()) |context| return canFail(context) catch break :blk {}; } return try normalWay();

0 comments

Sign in to join the discussion โ€” your thebay.events account works here.

No comments yet.