Switch for pattern matching and Enum
Excellent point! I normally handle this kind of validation with a guard clause, but this approach is a much better way to achieve concision. Thanks for sharing, Thiago!
Excellent point! I normally handle this kind of validation with a guard clause, but this approach is a much better way to achieve concision. Thanks for sharing, Thiago!