You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2017/09/09 08:14:00 UTC

[jira] [Commented] (GROOVY-8312) [Parrot]Deprecate useless features on unicode sequences

    [ https://issues.apache.org/jira/browse/GROOVY-8312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16159830#comment-16159830 ] 

Daniel Sun commented on GROOVY-8312:
------------------------------------

Paul, as to (1), we can provide unicode reader to translate all unicode sequences to unicode characters as the old parser does. But it will not be enabled by default, we can provide an option(e.g. groovy.unicode.identifier=true) to enable the translation.

> [Parrot]Deprecate useless features on unicode sequences
> -------------------------------------------------------
>
>                 Key: GROOVY-8312
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8312
>             Project: Groovy
>          Issue Type: Improvement
>    Affects Versions: 2.6.0-alpha-1
>            Reporter: Daniel Sun
>            Assignee: Daniel Sun
>             Fix For: 2.6.0-alpha-2
>
>
> 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` 
> 3) Unicode sequences like `\uuuuuuuuuu9fa5` is allowed in Groovy



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)