but as the accepted answer explains, it’s really h...
# getting-started
m
but as the accepted answer explains, it’s really hard to provide the data class sugar (equals, hashcode, copy) when there’s inheritance involved
b
This is why Swift makes every
struct
a bottom-level object. No inheritance allowed. They share a lot of commonalities with `data class`es, but it's not so bad when the language allows for extension methods