✅ Switch pattern matching with integers
Is this a valid/idiomatic way to use pattern matching to compare integers?
One thing bugging me in particular is: are the arms checked in the order they were written, or is the order not guaranteed?
If the order is not guaranteed, then obviously the code above does not work.
One thing bugging me in particular is: are the arms checked in the order they were written, or is the order not guaranteed?
If the order is not guaranteed, then obviously the code above does not work.