<p>Hello.<br /><br />Even if I'm -1 on the general idea of a None-aware, for a lot of reason already mentionned in this thread, the syntax "??" proposed (that I find much less readable than the current version) is still better IMHO.<br />How many programmer will read "||" or "OR" as a classic "or" operator? Programmers needs to learn the language, but making it easy for them to understand and learn is important in python.</p>
<p>More than that, if you use "||" or "OR" thinking you use "or", nothing will help you to understand what isn't working in your code.<br />So -1 on that idea even if PEP 505 were accepted.<br /><br />Nathan Mugnier</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<blockquote style="padding-left: 5px; margin-left: 5px; border-left: #ff0000 2px solid;">> Message du 19/07/18 15:06<br />> De : "Pål Grønås Drange" <paal.drange@gmail.com><br />> A : "Jonathan Fine" <jfine2358@gmail.com><br />> Copie à : "Python-Ideas" <python-ideas@python.org><br />> Objet : Re: [Python-ideas] PEP 505: None-aware operators: operators ?= and ?? and OR<br />> <br />>
<p dir="ltr">> I've started a subthread, just to discuss the ?= and ?? operators. And<br />> > something newish, that I call OR.</p>
<p dir="ltr">I would think `||` would be much better.</p>
<p dir="ltr">It could be a kind of "semantic or" which could use the aforementioned dunder has_value.</p>
<p dir="ltr">-1, though, but to the general None-awareness.</p>
<p dir="ltr">Pål</p>
<!-- PART SEPARATOR --><br /><br /><br />_______________________________________________<br />Python-ideas mailing list<br />Python-ideas@python.org<br />https://mail.python.org/mailman/listinfo/python-ideas<br />Code of Conduct: http://python.org/psf/codeofconduct/<br /><br /></blockquote>