Comment by NeutralForest
2 days ago
You should use if statements if that's what you need. The match statement is for structural pattern matching mostly.
2 days ago
You should use if statements if that's what you need. The match statement is for structural pattern matching mostly.
What’s the problem using it as a switch statement if you care about typographic issues? I do this so I’d like to know if I missed something and this is a bad practice.
It's not an issue, but that's not where most of the power is and can also be confusing since if you use variables in the case statement, the way it watches does not behave like a simple switch.