Comment

Comment by merb

> 2 - Cannot subclass Data classes

I know why you want it, I've always had that in scala where a case class is also not subclasseable.

But trust me it's a extremly bad idea. A data class should be final and only contain data. there is no reason to subclass it and if one day valhalla will be coming, it's even a worse idea.

parent merb 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton