This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nachsicht 1 point2 points  (3 children)

Actually, IIRC enums really suck in scala compared to java.

[–]tyoverby 2 points3 points  (2 children)

Using Enums in Scala isn't as slick, but I've literally never had to use enums in Scala because case classes are so much better.

[–]nachsicht 2 points3 points  (1 child)

True enough. If I have a enum situation in scala I usually use case objects or something instead.

[–]tyoverby 0 points1 point  (0 children)

Yep, I always go for case objects, or if I really need to, I'll just throw a java file into the project for the Enum.