InfoQ

Java Explores Carrier Classes to Extend Data-Oriented Programming Beyond Records

The OpenJDK Amber project has published a new design note proposing “carrier classes” and “carrier interfaces” to extend record-style data modeling to more Java types. The proposal preserves concise state descriptions, derived methods, and pattern matching, while relaxing structural constraints that limit records. By A N M Bazlur Rahman
favicon
infoq.com
infoq.com
Image for the article: Java Explores Carrier Classes to Extend Data-Oriented Programming Beyond Records