You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2019/12/20 15:10:00 UTC

[jira] [Commented] (GROOVY-9348) Introduce finer control for AS keyword with maps

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

Eric Milles commented on GROOVY-9348:
-------------------------------------

If you want type checking on the property names, there are some alternatives to using maps that can also provide terse syntax.  {{ObjectGraphBuilder}} is one.  {{Newify}} is another:
 !screenshot-1.png! 

> Introduce finer control for AS keyword with maps
> ------------------------------------------------
>
>                 Key: GROOVY-9348
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9348
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Compiler, Static compilation, Static Type Checker
>    Affects Versions: 2.5.8
>            Reporter: Konstantin Smirnov
>            Priority: Major
>              Labels: cast
>         Attachments: screenshot-1.png
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)