[Python-ideas] PEP 505 (None coalescing operators) thoughts
Steven D'Aprano
steve at pearwood.info
Tue Sep 29 14:43:39 CEST 2015
On Mon, Sep 28, 2015 at 01:54:09PM -0700, Guido van Rossum wrote:
> If you want to dumb down the feature so that foo?.bar.baz means just
> (foo?.bar).baz then it's useless and I should just reject the PEP.
In case anyone missed it, according to the PEP author Mark Haase, that's
the behaviour of Dart, and it is useless:
"Your interpretation of Dart's semantics is correct, and I agree that's
absolutely the wrong way to do it. C# does have the short-circuit
semantics that you're looking for."
https://mail.python.org/pipermail/python-ideas/2015-September/036495.html
--
Steve
More information about the Python-ideas
mailing list