Re:Data Classes for Java
by bunderbunder on Wednesday November 01, 2017 @10:02PM
(#15607234)
The big difference there would be, in the C# example you've still got to write a bunch more boilerplate for Equals(), GetHashCode() and ToString(). Kotlin's data classes give you those three for free.
var dog = new Animal(){ name="dog", numberOfLegs=4 };
I use it all the time.