Hacker News new | ask | show | jobs
by vips7L 634 days ago
Records are structural types. Null restricted types are in draft: https://openjdk.org/jeps/8303099
1 comments

Records in Java are nominal. In fact, it is syntax sugar for a class.