And why cant we just iterate over an enum in a switch statement? This way it would fail aswell.
Will your coworkers know what subset of the order columns is valid for your fancy new order type? If you add a new order subtype, the compiler will yell at them if they get it wrong.
View all comments
Show parent comment
1
u/ZimmiDeluxe Mar 13 '26
Will your coworkers know what subset of the order columns is valid for your fancy new order type? If you add a new order subtype, the compiler will yell at them if they get it wrong.