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
No comments yet.