Scala doesn’t have type-safe enums like Java has. Given a set of related constants, what would be the best way in Scala to represent those constants?

7 Answers
7

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *