Java 14 Feature Spotlight: Records
So some immediate thoughts:<p>1. Why not just call these "structs"? Everyone knows what a struct is. Also making "struct" a reserved keyword is less likely to cause issues than "record";<p>2. I get that these are trying to be simple but why can't I compose records from other records? I guess I can have a record member of a record?<p>3. I couldn't see if records can be passed entirely on the stack like primitive values can. This would be huge. I seem to recall there was some effort to add this to Java but I'm not sure whatever happened to that. It probably added a ton of complexity.