Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore Project Amber's upcoming carrier classes feature in this 10-minute Java newscast that breaks down Brian Goetz's recent email on "Data Oriented Programming, Beyond Records." Learn how carrier classes will generalize records by describing state through component lists that define external APIs including accessors, constructors, and matching deconstructors for pattern matching and reconstruction. Discover the key differences from records: carrier classes allow developer-controlled implementation (with component fields as shortcuts), support inheritance through non-final classes, and enable mutable data carriers through non-final fields. Understand how carrier interfaces will allow records to be abstract and how relaxed deconstruction patterns will improve type evolution. Get insights into additional Project Amber developments including pattern assignments and constant patterns from Gavin Bierman's recent announcement to enhance Java's data handling capabilities.
Syllabus
Intro
Carrier Classes
Carrier Classes - Record Review
Carrier Classes - Semantics
Carrier Classes - API Commitment
Carrier Classes - Representation
Carrier Classes - Beyond Records
Hug Duke
More Amber Goodies
Taught by
Java