You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@groovy.apache.org by Daniel Sun <re...@hotmail.com> on 2017/01/26 10:45:36 UTC

答复: One more new operator "implies" ( => ) for Groovy 3

Hi Jochen,

     => has lower priority than &&, ||, &, |

Cheers,
Daniel.Sun

发件人: Jochen Theodorou [via Groovy]<ma...@n5.nabble.com>
发送时间: 2017年1月26日 18:42
收件人: Daniel Sun<ma...@hotmail.com>
主题: Re: One more new operator "implies" ( => ) for Groovy 3



On 26.01.2017 10:07, Daniel Sun wrote:

> Hi all,
>
>      The new parser Parrot supports "implies" operator( => )  now, e.g.
>
> if (itIsRaining => iAmUsingUmbrella) {
>   println 'I am dry'
> }
>
>        More examples can be found at:
> 1)
> https://github.com/danielsun1106/groovy-parser/blob/impliesOperator/src/test/resources/core/ImpliesOp_01x.groovy
> 2)
> https://github.com/danielsun1106/groovy-parser/blob/impliesOperator/src/test/resources/core/ImpliesOp_02x.groovy
> 3)
> https://github.com/danielsun1106/groovy-parser/blob/impliesOperator/src/test/resources/core/ImpliesOp_03x.groovy
>
>        Any thoughts? If most of us like it, I'll merge the new feature to
> parrot branch of apache/groovy and resolve  GROOVY-2576
> <https://issues.apache.org/jira/browse/GROOVY-2576>

nice... how is the priority compared to other operators? For example
a=>b&&b=>a, a=>b&b=>a,  a=>b||b=>a, a=>b|b=>a.

bye Jochen


________________________________
If you reply to this email, your message will be added to the discussion below:
http://groovy.329449.n5.nabble.com/One-more-new-operator-implies-for-Groovy-3-tp5738103p5738113.html
To unsubscribe from One more new operator "implies" ( => ) for Groovy 3, click here<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5738103&code=cmVhbGJsdWVzdW5AaG90bWFpbC5jb218NTczODEwM3wxMTQ2MjE4MjI1>.
NAML<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://groovy.329449.n5.nabble.com/One-more-new-operator-implies-for-Groovy-3-tp5738103p5738115.html
Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: 答复: One more new operator "implies" ( => ) for Groovy 3

Posted by Daniel Sun <re...@hotmail.com>.
Since 30% of 76 developers don't like the new operator, it will be postponed
to merge into Apache Groovy util most of us like it.

Cheers,
Daniel.Sun




--
View this message in context: http://groovy.329449.n5.nabble.com/One-more-new-operator-implies-for-Groovy-3-tp5738103p5738162.html
Sent from the Groovy Dev mailing list archive at Nabble.com.