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

[PARROT] Refine safe indexing for maps/named parameters

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha-4
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: