4 ms·
In that case you're not really hacking it. If you think about what a switch does and how it works, it makes perfect sense. It's just a bit unusual to do it tha
by pythonaut_16 7y ago
In that case you're not really hacking it.
If you think about what a switch does and how it works, it makes perfect sense. It's just a bit unusual to do it that way.
- cfv 7y agoIs it not though? By exploiting the conditions to evaluate to true == $CaseValue you're subverting the expectation that the choices all rely on a single variable, all the while breaking fallthrough and default.