groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Champeau <cedric.champ...@gmail.com>
Subject Re: Custom operator for Groovy 3
Date Sun, 30 Oct 2016 09:06:25 GMT
I'm -1 on adding custom operators. We always said we wouldn't fall into the
same trap as C++ or Scala, but instead allow overriding existing operators.

Le 30 oct. 2016 10:03, "Paolo Di Tommaso" <paolo.ditommaso@gmail.com> a
écrit :

> This sounds a cool feature for DSL writers. What characters are eligible
> for custom operators?
>
>
> Cheers,
> Paolo
>
>
> On Sun, Oct 30, 2016 at 8:02 AM, 孙 岚 <realbluesun@hotmail.com> wrote:
>
>> Hi all,
>>
>>          The new parser support defining custom operator now. The initial
>> implementation is on the customOperator branch of groovy-parser(
>> https://github.com/danielsun1106/groovy-parser/tree/customOperator).
>>
>>           Some examples can be found at https://github.com/danielsun11
>> 06/groovy-parser/blob/c3259607c4ee0cda6e5619bed35d0674e26f78
>> aa/src/test/resources/core/CustomOperator_01x.groovy
>>
>>            In order to make the custom operator have more priorities, the
>> custom operators have lower priority by default, and the priority can be
>> changed by using parentheses.
>>
>>            Any thoughts?
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>

Mime
View raw message