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

Support the concept of "traits"

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0-beta-1
    • Fix Version/s: 2.3.0-beta-1
    • Component/s: Compiler
    • Labels:
      None

      Description

      Traits...

      • are stateful components that can be mixed in classes
      • support composition and inheritance
      • are compatible with static type checking and static compilation
      • support dynamic approaches as well
      • can be mixed in at runtime
      • solve the usual diamond problem of inheritance
      • support specific overriding rules in case of method conflicts

      See here for detailed documentation for more information:
      http://beta.groovy-lang.org/docs/groovy-2.3.0-SNAPSHOT/html/documentation/core-traits.html

        Attachments

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              guillaume Guillaume Sauthier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: