[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFE: Please allow unicode ID chars in identifiers

From: Chet Ramey
Subject: Re: RFE: Please allow unicode ID chars in identifiers
Date: Tue, 13 Jun 2017 16:02:12 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 6/13/17 2:30 PM, L A Walsh wrote:
> Chet Ramey wrote:
>> On 6/1/17 8:42 PM, L A Walsh wrote:
>>> It would be a useful upgrade besides being a "good world citizen" ;-).
>> The only way this makes sense is to extend the allowable set of
>> characters from the portable character set to the current locale.
>>> I'm guessing that if POSIX was set, then they'd be limited
>>> to the ASCII (American Standard Code for Information Interchange)
>>> set.  ;^)
>> Not quite; it's a subset of characters from the Portable Character Set.
>> That's the set of characters that Posix requires to be present in all
>> locales supported by Posix systems.
>> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_235
> Aren't all of those characters in ASCII?  I.e. wouldn't
> ASCII be a limiting set?  It may not be the minimal set, since
> many characters in ASCII aren't usable in varnames, but I
> thought the allowed chars in vars were some set <= ASCII?

This is correct.  The portable character set is a subset of ASCII.

> It seems like it would be a greater support burden to
> allow one set for functions while restricting the allowed
> characters for variables to some smaller set, no?

No, of course not.  The code has to exist, and it exists, to support Posix
standard identifiers. It's a greater support burden to add locale-specific
code to what already is there.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]