Benefits of unicode identifiers (was: Allow additional separator in identifiers)

Chris Angelico rosuav at gmail.com
Fri Nov 24 15:08:09 EST 2017


On Sat, Nov 25, 2017 at 7:00 AM, Mikhail V <mikhailwas at gmail.com> wrote:
> I agree that one should have more choices, but
> people still can't really choose many things.
> I can't choose hyphen, I can't choose minus sign,
> and many tech people would probably want more operators.
> It counts probably not so *big* amount of people, compared to *all*
> people that potentially would say "oh how wonderful is it to be able
> to write in various scripts", still it is just a "use it at your own risk"
> thing at a minimum, and merely based on emotions rather than
> common sense.
>
> Regardless of what Unicode decides for classifications, there simply must
> be careful analysis how the major *Python* code actually looks in the end
> of all experiments. Especially true for characters in regard
> identifiers versus operators.

And it's the "identifiers versus operators" question that is why you
can't use hyphen in an identifier. Underscore is available as an ASCII
joiner, and there are various non-ASCII joiners available too. Why is
hyphen so important?

ChrisA



More information about the Python-list mailing list