Seems to me that the switch is more concise than the equivalent enum would be.