Support guards
Opened this issue · 0 comments
RoyalIcing commented
yield guard(digit <= 255, "Must be less than 255");
// Returns Error("Must be less than 255") if true, null if false.
Or could support just using ternary:
yield digit <= 255 ? new Error("Must be less than 255") : null;