Brian Goetz, Java language architect at Oracle, discusses the evolution of carrier/component classes proposals in Project Amber — a mechanism to extend record-like deconstruction capabilities to regular classes. He explains why the first proposal was too close to reinventing records and how the second, simpler proposal focuses purely on declaring a class as deconstructible via a component list. The conversation also covers reconstruction (JEP 468), the challenges of syntax discussions in language design, how to give useful feedback on JEPs, and a preview of 'enhanced local variable declarations' (imperative pattern matching) as Amber's next likely feature.
•46m watch time
Sort: