Re:Java's records, Lombok's data, and Kotlin's data classes
by __jem on Friday May 07, 2021 @09:17PM
(#27082722)
this technique works with sealed classes, i’ve done it before. it throws a runtime exception if it can’t identify the discriminant.
[ Parent
| on HN ]
There are no comments on this comment yet.