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

[PARROT] Refine safe indexing for maps/named parameters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-4
    • None
    • None

    Description

      Groovy can create instance via some syntax like SpecialSafeIndex[name: 'Daniel.Sun', location: 'Shanghai'], but it does not allow the safe indexing, e.g. SpecialSafeIndex?[name: 'Daniel.Sun', location: 'Shanghai']. We should refine it for consistence in syntax.

      P.S. The topic was discussed in the mailing list before.

      Attachments

        Issue Links

          Activity

            People

              daniel_sun Daniel Sun
              daniel_sun Daniel Sun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: