I'm not sure if this works. I'm not that familiar with how switch statements actually compare the things.
In fact, during lowering (a step in compilation) the switch is transformed to an nested if, in some cases to a binary search tree to optimize for efficiency.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm not sure if this works. I'm not that familiar with how
switch
statements actually compare the things.In fact, during lowering (a step in compilation) the
switch
is transformed to an nestedif
, in some cases to a binary search tree to optimize for efficiency.