[ https://issues.apache.org/jira/browse/GROOVY-6680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-6680. ----------------------------- > Conditional Return > ------------------ > > Key: GROOVY-6680 > URL: https://issues.apache.org/jira/browse/GROOVY-6680 > Project: Groovy > Issue Type: New Feature > Components: syntax > Reporter: Kenneth Endfinger > Assignee: Jochen Theodorou > > I would like to propose a new feature. the Conditional Return. > {code} > void test() { > // Do Something > return if [some expression] > // Do Some More > return if [some expression] > } > {code} > To me this reads a bit better than > {code} > void test() { > // Do Something > if ([some expression]) { > return > } > // Do Some More > if ([some expression]) { > return > } > } > {code} > I highly doubt this will be implemented, but it was just an idea I had. -- This message was sent by Atlassian JIRA (v6.3.15#6346)