News for hackers. Stuff that matters.
Re:Java's records, Lombok's data, and Kotlin's data classes by stickfigure on Friday May 07, 2021 @02:55PM (#27079516)
It's also implemented nicely, today, with Lombok:

    @Value @With
    public class Pair {
        int left;
        int right;
    }

    final Pair rightIs3 = somePair.withRight(3);

There are no comments on this comment yet.