You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/10/20 07:29:00 UTC

[jira] [Commented] (GROOVY-8851) Refine safe indexing for named properties

    [ https://issues.apache.org/jira/browse/GROOVY-8851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16657774#comment-16657774 ] 

ASF GitHub Bot commented on GROOVY-8851:
----------------------------------------

GitHub user danielsun1106 opened a pull request:

    https://github.com/apache/groovy/pull/813

    GROOVY-8851: Refine safe indexing for named properties

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/danielsun1106/groovy refine-safe-index

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/813.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #813
    
----
commit 27fc472e1ca1f1242a31cac93138dd318cdbbcec
Author: danielsun1106 <re...@...>
Date:   2018-10-20T07:24:34Z

    GROOVY-8851: Refine safe indexing for named properties

----


> 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)