You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/09/22 11:31:00 UTC

[jira] [Created] (GROOVY-9754) Provide a record-like equivalent

Paul King created GROOVY-9754:
---------------------------------

             Summary: Provide a record-like equivalent
                 Key: GROOVY-9754
                 URL: https://issues.apache.org/jira/browse/GROOVY-9754
             Project: Groovy
          Issue Type: New Feature
            Reporter: Paul King


This issue is to look at providing an equivalent to JDK14 records. In the first instance, something like:
{code}
@RecordType
class PersonRecord implements Person, Serializable {
    String firstName
    String lastName
}
{code}
Outside the scope of this issue, we can consider syntactic sugar in the grammar to have similar syntax to Java.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)