[erlang-questions] literal character syntax
zxq9
zxq9@REDACTED
Mon May 19 13:44:18 CEST 2014
On Monday 19 May 2014 17:50:11 Richard A. O'Keefe wrote:
> All that Unicode has done for us here is to make ($ )
> *more* dangerous than it already was. (And this is without
> considering the 145 'Cf' characters in Unicode 6.3, amongst
> which TAB and LF may be found. The thought of someone
> innocently copying a "character" from a file and dropping
> it in just after a $ sign without realising that the "character"
> is a sequence beginning with a language tag or a digit shape
> selector does *not* appeal.)
Thank you for the thorough response. It appears this will eventually be made
into a warning not a language rule. Leaving it unaddressed would have left
leave some weird, dangerous corner cases for human plain-text code readers
(which is probably most of us at the moment) as illustrated by your example
above.
This will leave those who occasionally use things like double-width spaces in
code free to do so (not an uncommon practice in CJK-target programs; hopefully
with a comment to explain what it is!) while clearly notifying anyone building
such a project of its presence.
More information about the erlang-questions
mailing list