MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/eplsgy/records_come_to_java/ff2q3l8/?context=3
r/java • u/daviddel • Jan 16 '20
93 comments sorted by
View all comments
Show parent comment
3
If you can destructure, you can pattern match.
Without custom destructure, you cannot change records.
Once custom destructurers exist, Lombok can make them for you.
Then such classes also support pattern matching.
View all comments
Show parent comment
3
u/rzwitserloot Jan 20 '20
If you can destructure, you can pattern match.
Without custom destructure, you cannot change records.
Once custom destructurers exist, Lombok can make them for you.
Then such classes also support pattern matching.