You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2018/10/20 08:21:00 UTC
[jira] [Resolved] (GROOVY-8851) Refine safe indexing for named
properties
[ https://issues.apache.org/jira/browse/GROOVY-8851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Sun resolved GROOVY-8851.
--------------------------------
Resolution: Fixed
Fixed by https://github.com/apache/groovy/commit/ed17fb24dc3e2045c1f83c63cfedfa9e870397f2
> Refine safe indexing for named properties
> -----------------------------------------
>
> Key: GROOVY-8851
> URL: https://issues.apache.org/jira/browse/GROOVY-8851
> Project: Groovy
> Issue Type: Improvement
> Reporter: Daniel Sun
> Assignee: Daniel Sun
> Priority: Minor
> Fix For: 3.0.0-alpha-4
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)