[Python-ideas] PEP 505: None-aware operators
Antoine Pitrou
solipsis at pitrou.net
Mon Jul 23 06:11:56 EDT 2018
On Mon, 23 Jul 2018 10:51:31 +0100
Steve Dower <steve.dower at python.org> wrote:
>
> Which is the most important operator?
> -------------------------------------
>
> Personally, I think '?.' is the most valuable.
For me, it's the most contentious. The fact that a single '?' added to
a regular line of Python code can short-circuit execution silently is a
net detriment to readability, IMHO.
In a code review, this means I must be careful about '?' sigils lest I
miss important bug magnets.
Regards
Antoine.
More information about the Python-ideas
mailing list