About unicode sequence support in groovy source code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

About unicode sequence support in groovy source code

Daniel Sun
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
Reply | Threaded
Open this post in threaded view
|

Re: About unicode sequence support in groovy source code

Daniel Sun
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
Reply | Threaded
Open this post in threaded view
|

Re: About unicode sequence support in groovy source code

Daniel Sun
In reply to this post by Daniel Sun
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