paulk-asert commented on pull request #1375: URL: https://github.com/apache/groovy/pull/1375#issuecomment-697074313
Records are indeed somewhat similar to @Immutable + @POJO. There are different getter naming conventions, special serialization rules and some other restrictions on records. The goal here would eventually be to create native records with Groovy syntax, so yes a `record` keyword would be part of that but I don't think that aspect needs to be sorted before alpha-1 and can be done later like `trait` was added later for `@Trait`. The AST transform I think is useful enough in it's own right and would allow record-like classes to be created in the meantime until we consider native record support. We just need to not back ourselves into a corner that would disallow native records as a second step. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
