<div dir="ltr">Python does not use U+2010 HYPHEN for the minus operator, it uses the U+002D (-) HYPHEN-MINUS.<div><br></div><div>In some monospace fonts, there is a subtle difference between U+002D, U+2013 EN DASH, and U+2014 EM DASH, but it's usually hard to tell them *all* apart.</div><div><br></div><div>If you want to make a proposal, I'd suggest that you limit it to allowing the U+2010 HYPHEN to be used for names. U+002D simply cannot be changed because it would break billions of lines of code.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 18, 2017 at 10:44 PM, Mikhail V <span dir="ltr"><<a href="mailto:mikhailwas@gmail.com" target="_blank">mikhailwas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sun, Nov 19, 2017 at 3:42 AM, Nick Coghlan <<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>> wrote:<br>
<br>
> For anyone tempted to suggest "What about multiple underscores<br>
> indicating continuation of the variable name?", that's still a<br>
> compatibility problem due to the unary minus operator:<br>
><br>
>     >>> my--variable<br>
>     2<br>
>     >>> my---variable<br>
>     0<br>
<br>
</span>That seems to be another showcase of misfotune that Python<br>
uses hyphen for minus operator. I know it is not language designer's<br>
fault, because basic ASCII simply did not not include minus character.<br>
But do you realise that the **current** problem you are adressing is that<br>
font designers forgot to make the minus character (in monospaced font)<br>
distinctive from the hyphen character?<br>
<br>
Well, what can I say, I just think it should be a reason to make a<br>
collective complain to font providers, but not that you should silently<br>
accept this and adopt the language design to someone's sloppy font design.<br>
<br>
As an aid for monospace die-hards, to minimise the confusion one could<br>
publish a style-guide that recommends to disclose the minus operator (currently<br>
hyphen char)  in spaces, like a - b, and probably disallow the new proposed<br>
hyphen character in the beginning of the identifiers.<br>
That would still leave potential for confusion because you cant' force everyone<br>
to follow style-guides, but one should struggle to break from this cycle anyway.<br>
<span class=""><br>
><br>
> Would hyphens in variable names improve readability sometimes?<br>
<br>
</span>For reading code, indeed, always and very much. Of course not in case<br>
I would be forced<br>
to use monospaced font with a similar minus and hyphen. But<br>
in that case I am already accepting the level of readability of<br>
12th century, so this would not make things much worse, and I<br>
would simply put spaces around the minus operator and try to highlight<br>
it with some strong color.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Mikhail<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/<wbr>codeofconduct/</a><br>
</div></div></blockquote></div><br></div>