Last active
August 29, 2015 14:21
-
-
Save mrfyda/ad94180cd00613cf314b to your computer and use it in GitHub Desktop.
withName hurts...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Currency extends Enumeration { | |
val GBP = Value | |
val EUR = Value | |
} | |
Currency.withName("USD") // Boom! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment