We're a place where coders share, stay up-to-date and grow their careers.
Personally, I'm a fan of just using a Map instead of a switch. For me switch statements just seem overly verbose and less intuitive.
Personally, I'm a fan of just using a Map instead of a switch. For me switch statements just seem overly verbose and less intuitive.