Re: [Python-ideas] Spelling of Assignment Expressions PEP 572 (was post #4)

It does work, however I think it does sound like a patch, and definitely it will block us to make other extensions in the future.
3) "target ? expr" (where ? is some other word/character - IIRC "target from expr" was proposed once)
A more popular convention is to mark `?` as handling boolean variables, so `target ? expr` could mean `expr if target else target`. Other proposal for null/boolean checking might need `?`, let's preserve `?` character for further development.
It makes sense, if we don't have a long history in Python programming... A new keyword would be something very dangerous, because it just causes the crash of some existed library using the keyword as identifier.

On Tue, Apr 17, 2018 at 6:09 AM, Thautwarm Zhao <yaoxiansamma@gmail.com> wrote:
Hey! I did not propose "?". Read the explanation in parenthesis. My whole idea that any option could be viable, as long as it does not propose reversed order notation. But anyway ":=" is better than any keyword imo. Mikhail

On Tue, Apr 17, 2018 at 6:09 AM, Thautwarm Zhao <yaoxiansamma@gmail.com> wrote:
Hey! I did not propose "?". Read the explanation in parenthesis. My whole idea that any option could be viable, as long as it does not propose reversed order notation. But anyway ":=" is better than any keyword imo. Mikhail
participants (3)
-
Guido van Rossum
-
Mikhail V
-
Thautwarm Zhao