4 ms·
Pretty good list. I don't think the tuple comparison is accurate though, I thought a data class is basically a value type (like Swift's struct) except with some
by trevor-e 9y ago
Pretty good list. I don't think the tuple comparison is accurate though, I thought a data class is basically a value type (like Swift's struct) except with some stuff like equals, hashcode, and toString calculated for you.
Minor nit: the sort example needlessly uses two lines for the Swift version.
- deleted 9y ago[deleted]