2 ms·
That depends. Value types don't support polymorphism and subclassing. More specifically, you can't have an array of a union value type like you would in C. Coul
by pron 13y ago
That depends. Value types don't support polymorphism and subclassing. More specifically, you can't have an array of a union value type like you would in C. Could case classes do without polymorphism?
- kasey_junk 13y agoCase classes as they currently stand cannot do without polymorphism. That said the Scala team doesn't show a lot of hesitancy in adding new features so I wouldn't be surprised if they implemented case value classes of some sort once the JVM supports them natively.