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

add Elvis Operator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-beta-3
    • 1.1-beta-3
    • parser-antlr2
    • None

    Description

      as discussed on the mailing lists and on GDC 3 we add the Elvis Operator:

      c = foo ?: bar // equivalent to c = foo ? foo : bar

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: