[Python-ideas] Null coalescing operators
storchaka at gmail.com
Sun Sep 20 09:28:03 CEST 2015
On 20.09.15 09:46, Random832 wrote:
> Serhiy Storchaka <storchaka at gmail.com>
>> On 19.09.15 07:21, Guido van Rossum wrote:
>>> I do, but at least the '?' is part of an operator, not part of the name
>>> (as it is in Ruby?).
>> What to do with the "in" operator?
> This is one of those things where we've got to decide which side it
> applies to. None can be in a list, but not a string. And nothing can be
> in None.
All operators are either identifiers ("in", "is", "not"), or
nonalphabetic. Not mixes. There is no the "in=" operator and I guess
shouldn't be "?in".
More information about the Python-ideas