Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9754

Provide a record-like equivalent

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • None
    • None

    Description

      This issue is to look at providing an equivalent to JDK14 records. In the first instance, something like:

      @RecordType
      class PersonRecord implements Person, Serializable {
          String firstName
          String lastName
      }
      

      Outside the scope of this issue, we can consider syntactic sugar in the grammar to have similar syntax to Java.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m