Are you aware of Dotty's syntactic sugar for enums?
implicit class ListMethods[+T](list: List[T]) { ... } But I think that's the point: an "enum" is closer to a pure ADT.
-
-
I think now we are deep into post-hoc rationalization. Yes, this enum impl is very poorly designed, but no, it doesn't have to be this way.
-
I'm not sure it is that way, if you read
@odersky's original motivation. I totally believe that he added the feature reluctantly... - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.