You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/07/13 20:36:05 UTC
[jira] [Closed] (GROOVY-5043) Idea to make safe navigation operator
even more useful
[ https://issues.apache.org/jira/browse/GROOVY-5043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher closed GROOVY-5043.
-------------------------------------
Resolution: Won't Fix
Closing as won't fix because of Jochens comment.
> Idea to make safe navigation operator even more useful
> ------------------------------------------------------
>
> Key: GROOVY-5043
> URL: https://issues.apache.org/jira/browse/GROOVY-5043
> Project: Groovy
> Issue Type: Improvement
> Components: groovy-runtime
> Reporter: Gunchin Aleksey
> Priority: Minor
>
> In the line of code with long chain calls not only nulls can ruin all this. Exceptions too.
> So it would be cool to have something like
> obj.trySomeMethod()?.field
> where obj have only someMethod and trySomeMethod added automatically.
> Or maybe something like obj.?someMethod()?.field
> it will return null on any exception
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)