[Python-ideas] PEP 505 (None coalescing operators) thoughts

Sven R. Kunze srkunze at mail.de
Thu Oct 1 00:57:52 CEST 2015


On 30.09.2015 13:00, Rob Cliffe wrote:
> Or:
>     x = a orelse b        # Visual Basic has a short-circuiting OrElse 
> operator for boolean operands
>     x = a orifNone b
>
>
> On 30/09/2015 01:39, Ryan Gonzalez wrote:
>> What about 'otherwise'?
>>
>> x = a otherwise b
>>


The only reason why I would prefer "else" over the proposed 
alternatives: it's already a reserved keyword and it's not really 
necessary to waste another one. Otherwise, I don't care too much.

Best,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20151001/cb3099c6/attachment.html>


More information about the Python-ideas mailing list