[rust-dev] Unicode identifiers

Graydon Hoare graydon at mozilla.com
Fri Feb 25 15:35:27 PST 2011

On 11-02-25 02:35 PM, Igor Bukanov wrote:

> With most fonts it is not possible to see that the following ES
> fragment should alert 1, not 2. I guess such problems are not
> considered high on the list of language designs.
> javascript:var a = 1; а = 2; alert(a);

Also note that UAX 36 and 39 cover these issues in more detail, 
including defining various additional restriction subsets. Some of those 
subsets, with or without combination of locale information, could 
provide some defense here. Particularly, as I say, as a pragma.


More information about the Rust-dev mailing list