groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: Custom operator for Groovy 3
Date Tue, 01 Nov 2016 14:16:25 GMT


On 01.11.2016 02:39, Daniel.Sun wrote:
> Hi Jochen,
>
>       I tried to implement custom operator based on your new idea and
> found it a bit ambiguous, e.g. ".<" is ambiguous to
> "obj.hello('Daniel')"

this I do not understand really, unless < can be part of an identifier 
or an identifier can end with a dot, but the later would produce even 
more ambiguity problems.

>, ".*" is ambiguous to "import java.util.*", etc.

I expected conflicts with a.*x and a.?x, but not with an import. Makes 
me think the approach is maybe wrong. Where did you do the changes? Some 
place as for thee `?

bye Jcohen

Mime
View raw message