[erlang-questions] correct terminology for referring to strings

Thomas Lindgren <>
Wed Aug 1 22:03:53 CEST 2012





----- Original Message -----
> From: Vlad Dumitrescu <>
...
> 
> On Wed, Aug 1, 2012 at 8:42 PM, Thomas Lindgren
> <> wrote:
>>  How about adding compiler warnings about string literals that do not obey
>>  the designated encoding? (There should then, of course, be multiple 
> possibilities to choose from.)
>> 
>>  E.g., "warn if strings not UTF8", "warn if not 
> Latin-1", "warn if not compatible with current locale" ...
> 
> The problem is that there aren't any invalid Latin-1 characters and
> thus strings. One can guess that for example "ø" is not a meaningful
> string, and that it's actually "ø", but it's not 100% 
> reliable...


Good catch, maybe one could check for subsets of Latin-1 or something
if so desired. I guess I'm mainly interested in UTF8 myself.

Best,
Thomas




More information about the erlang-questions mailing list