<html><head></head><body>I think the core issue is that, whether or not it should be used, APIs already return None values, so a convenience operator might as well be added.<br><br><div class="gmail_quote">On September 19, 2015 2:09:48 PM CDT, "Sven R. Kunze" <srkunze@mail.de> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On 19.09.2015 14:48, Stephen J. Turnbull wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Sven R. Kunze writes:<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> Issue is, None is so convenient to work with. You only find out the<br /> code smell when you discover a "NoneType object does not have<br /> attribute X"<br /></blockquote><br /> That's exactly what should happen (analogous to a "signalling NaN").<br /></blockquote><br />Not my point, Stephen. My point is, you better avoid None (despite its <br />convenience) because you are going to have a hard time finding its <br />origin later in the control flow.<br /><br />Question still stands: is None really necessary to justify the <br />introduction of convenience operators like "?." etc.?<br /><br /><blockquote class="gmail_quote" style="margin: 0pt
0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> The problem is if you are using None as a proxy for a NULL in another<br /> subsystem that has "NULL contagion" (I prefer that to "coalescing").<br /></blockquote><br />How would you solve instead?<br /><br /><br />Best,<br />Sven<br /><hr /><br />Python-ideas mailing list<br />Python-ideas@python.org<br /><a href="https://mail.python.org/mailman/listinfo/python-ideas">https://mail.python.org/mailman/listinfo/python-ideas</a><br />Code of Conduct: <a href="http://python.org/psf/codeofconduct">http://python.org/psf/codeofconduct</a>/<br /></pre></blockquote></div><br>
-- <br>
Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.</body></html>