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

Antoon Pardon antoon.pardon at vub.be
Mon Nov 27 05:11:37 EST 2017


Op 23-11-17 om 19:42 schreef Mikhail V:
> Chris A wrote:
>
>>> On Fri, Nov 24, 2017 at 1:10 AM, Mikhail V wrote:
>>>
>>>> Chris A wrote:
>>>>
>>>> Fortunately for the world, you're not the one who decided which
>>>> characters were permitted in Python identifiers. The ability to use
>>>> non-English words for function/variable names is of huge value; the
>>>> ability to use a hyphen is of some value, but not nearly as much.
>>> Fortunately for the world we have Chris A. Who knows what is
>>> fortunate and of huge values.
>>> So is there any real world projects example of usage of non-latin scripts
>>> in identifiers? Or is it still only a plan for the new world?
>
>> Yes, I've used them personally. And I know other people who have.
>
> Oh, I though it would be more impressive showcase for 'huge value'.
> If we drop the benefit of the bare fact that you can do it, or you just
> don't know English, how would describe the practical benefit?
> If you don't know english, then programming at all will be just too hard.
> (or one must define a new whole language specially for some local script)

Well maybe the value is not huge, but I really appreciate the possibility.
Being able to write something like below, makes things a lot more clear
for me.

Po = Pc + R * Vec(cos(θo), sin(θo))
Pe = Pc + R * Vec(cos(θe), sin(θe))
𝚫θ = θe - θo
𝚫P = Pe - Po

-- 
Antoon Pardon.




More information about the Python-list mailing list