News for hackers. Stuff that matters.
Re:Data Classes for Java by dangets on Wednesday November 01, 2017 @10:27PM (#15607360)
True, but the constructor method is checked/validated at compile time vs. run time with the builder pattern. Not quite the same as your example, but Kotlin does have good syntax for copying data classes while only changing a single field - this could be used similar to your currying usage.

https://kotlinlang.org/docs/reference/data-classes.html#copy...

Re:Data Classes for Java by guelo on Thursday November 02, 2017 @12:33AM (#15607860)
Here's that kotlin copy syntax

      val cat = dog.copy(name = "cat")