On 2020-02-02 15:00, Karl Ramm wrote:
We have all shared in the observation that all but the most carefully
considered operator overloading tends to reduce code readability. There
also many programmers that feel that they need it to make there code terse
(or perhaps shiny) enough.
I propose adding ! and $ as (normally unimplemented) binary operators and ?
as a unary operator so as to explicitly to give people the rope they want
but clearly tagged "here there be shenanigans".
In the past there have been suggestions to add None-coalescing operators
such as "?." and "??", comparable to the null-coalescing operators of
C#, so I'm -1 on just adding "!", "$" and "?" without a solid use-case,
in case we find a better use for them later in the future.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/NNXFIAQH2UYDJGBCAQAFO6JZKVVLHOEG/
Code of Conduct: http://python.org/psf/codeofconduct/