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

Jeff Hardy jdhardy at gmail.com
Wed Sep 30 18:34:06 CEST 2015


On Tue, Sep 29, 2015 at 6:02 PM, Steven D'Aprano <steve at pearwood.info>
wrote:

> On Tue, Sep 29, 2015 at 06:37:46PM +0200, Georg Brandl wrote:
>
> > >     x = x ?? []
> >
> > Looking at this, I think people might call ?? the "WTF operator".  Not a
> > good sign :)
>
> I see your smiley, but C# has this operator. What do C# programmers call
> it? ("Null coalescing operator" is the formal name, but that's way too
> long for everyday use.)
>

I've never seen it referred to as anything other than "the null coalescing
operator" (or occasionally the "double question mark operator"). C# devs
aren't necessarily the most creative bunch... :)

- Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150930/6cd63986/attachment.html>


More information about the Python-ideas mailing list