Pattern matching for the win! That aside, switch statements are more easily readable than long if-else-chains when comparing against constants. As always, readability is subjective.
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.
Pattern matching for the win! That aside, switch statements are more easily readable than long if-else-chains when comparing against constants. As always, readability is subjective.