Java Withers - Inside Java Newscast #67
Nicolai Parlog on April 18, 2024JEP 468 proposes a solution to the verbosity that can come from modeling mutable state with immutable records: derived record creation aka with expressions aka withers . That’ll make it easy and succinct to create a copy of a record instance while changing just a few components.
Make sure to check the show-notes.