<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, 19 Jul 2018 at 14:29 Steve Dower <<a href="mailto:steve.dower@python.org">steve.dower@python.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">[SNIP]<br><div>
<br>
* "We could have 'else', we don't need '??'"<br>
<br>
This is the "a else 'default'" rather than "a ?? 'default'" proposal, <br>
which I do like the look of, but I think it will simultaneously mess <br>
with operator precedence and also force me to search for the 'if' that <br>
we actually need to be comparing "(a else 'default')" vs. "a ?? 'default'"::<br>
<br>
x = a if b else c else d<br>
x = a if (b else c) else d<br>
x = a if b else (c else d)<br></div></blockquote><div><br></div><div>The searching for the 'if' also throws me with this proposal. I think someone else proposed `A unless B` but I always prefer knowing upfront what I'm working with, not later by having to read farther along.</div><div><br></div><div>Personally, if the `A?? B` is the part people like but hate the syntax then my vote would go to `A otherwise B` since it's unambiguous, the case you care about the state of comes first, and it doesn't trip your brain up looking for 'if'. :)<br></div><div> </div></div></div>