[erlang-questions] A proposal for Unicode variable and atom names in Erlang.
Anthony Ramine
n.oxyde@REDACTED
Mon Oct 22 13:05:02 CEST 2012
Also MODIFIER LETTER COLON (U+A789) is in category Sk (Symbol, Modifier)
and both RATIO (U+2236) and HEBREW PUNCTUATION SOF PASUQ (U+05C3) are in
Po (Punctuation, Other).
None of these categories are included in the categories of Richard's EEP,
thus the compiler would fail with a syntax error, giving the exact location
of the "wrong colon" character.
--
Anthony Ramine
Le 22 oct. 2012 à 12:51, Anthony Ramine a écrit :
> Should we also forbid quoted atoms to avoid evil atoms like '
> % this one that contain comments and newlines
> and_also() -> some_code.'? Or should we do the usual thing,
> let our coding environment inform us of the nature of the
> characters through lexical highlighting?
>
> --
> Anthony Ramine
>
>
> Le 22 oct. 2012 à 12:45, Yurii Rashkovskii a écrit :
>
>> Also, consider this: there are characters that look the same but encoded differently. We don't need to go far: the colon character. Lets suppose Erlang's "native" colon is U+003A. Now, there is at least three characters that look very similar: U+A789, U+2236, U+05C3. Now you can produce a code that will confuse the hell out of you. Which colon is the right colon?
>>
>> On Monday, October 22, 2012 3:36:20 AM UTC-7, Loïc Hoguin wrote:
>> On 10/22/2012 08:00 AM, Anthony Ramine wrote:
>>> Also non-latin users who don't know English should be able to use
>>> atoms and variables they understand.
>> Can't stress this enough.
>>
>> --
>> Loïc Hoguin
>> Erlang Cowboy
>> Nine Nines
>> http://ninenines.eu
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-q...@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>
More information about the erlang-questions
mailing list