Wednesday, January 20, 2010

A Better Scala Enumeration Type

I am going to post a link to the Enum type that I wrote due to the limitations of the builtin Scala Version. I don't use the built in enumeration type anymore as I find it very limiting.

(source & test / example):

Originally I wrote this as answer to this question on StackOverflow, however felt that it would be useful here too.

No comments: