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/09/08 12:34:27 UTC
About unicode sequence support in groovy source code
Hi all,
Groovy supports some strange features on unicode:
1) Declaring identifier with unicode sequences , e.g. `def \u4e00\u9fa5 =
123`
2) All source code is written in unicode sequence, e.g. `\u0064\u0065\u0066
\u0061 \u003d \u0031\u0032\u0033`, the corresponding readable code is `def a
= 123`
They seems useless and impacts the performance of parsing, so I am
going to stop supporting it in 2.6.0+.
Any thoughts?
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
Re: About unicode sequence support in groovy source code
Posted by Daniel Sun <re...@hotmail.com>.
After discussed with Paul, unicode sequence identifiers can be preserved via
unicode reader as the old parser does.
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
Re: About unicode sequence support in groovy source code
Posted by Daniel Sun <re...@hotmail.com>.
In addtion, unicode sequences like `\uuuuuuuuuu9fa5` is allowed in Groovy...
I am going to deprecated it too.
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html