[Python-ideas] PEP 505: None-aware operators
Giampaolo Rodola'
g.rodola at gmail.com
Wed Jul 18 21:05:00 EDT 2018
On Thu, Jul 19, 2018 at 2:06 AM Chris Angelico <rosuav at gmail.com> wrote:
> > With all due respect (and I am sorry for being “vocal” about a PEP once
> > again) I find this simply ugly. To me this basically doesn’t look like
> > python anymore, so a strong -1 from me.
>
> I'd love to hear an explanation of WHY this doesn't look like Python
> any more.
Because it looks like Perl.
> For instance, is the + operator somehow wrong for Python,
> and it should have been the word "add"?
The meaning of "+" is obvious to anybody, including non programmers.
"?" is arbitrary so you cannot guess what it does or means, especially
when it can be spelled in so many different forms (?, ??, a?.b, ??=,
...), each form requiring a different mental replacement. Use this and
:= on the same line and the reader will practically be reading another
language.
> [ please trim quotes, you just quoted the entire PEP in your post ]
Ouch! Sorry about that.
--
Giampaolo - http://grodola.blogspot.com
More information about the Python-ideas
mailing list