Hi Jochen,
> "obj.hello('Daniel')"
My mail client translated the generics type to html tag, which is ignored...
The example code is about generics method call.
> I expected conflicts with a.*x and a.?x, but not with an import.
The lexer will try to match as many characters as possible and make tokens, as
a result, .* in the import statement is also recognized as custom operator. So
I use ` instead for the time being.
Cheers,
Daniel.Sun
在 "Jochen Theodorou [via Groovy]"
<[email protected]>,2016年11月1日 下午10:17写道:
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
________________________________
If you reply to this email, your message will be added to the discussion below:
http://groovy.329449.n5.nabble.com/Custom-operator-for-Groovy-3-tp5736388p5736441.html
To unsubscribe from Custom operator for Groovy 3, click
here<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5736388&code=cmVhbGJsdWVzdW5AaG90bWFpbC5jb218NTczNjM4OHwxMTQ2MjE4MjI1>.
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/Custom-operator-for-Groovy-3-tp5736388p5736442.html
Sent from the Groovy Dev mailing list archive at Nabble.com.