[Python-ideas] [Python-Dev] What's the status of PEP 505: None-aware operators?

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Nov 29 16:27:34 EST 2017


Nick Coghlan wrote:

>>What about more English-like syntax:
>>
>>X or else Y
> 
> The problem with constructs like this is that they look like they
> should mean the same thing as "X or Y".

How about:

    x otherwise y

It looks different enough from "or" that you're not going
to accidentally read it that way when skimming.

The meaning is something you'll have to learn if you don't
know, but at least it's a word that can be googled for.

-- 
Greg


More information about the Python-ideas mailing list