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

Thautwarm Zhao yaoxiansamma at gmail.com
Tue Apr 17 08:59:27 EDT 2018


> 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.

Dear Mikhail, so sorry about my misunderstanding, I should read the post
with fewer presuppositions...
Back to the topic, this thread seems to be closed now, and in my opinion
`:=` could be synthetically the best.


2018-04-17 15:11 GMT+08:00 Mikhail V <mikhailwas at gmail.com>:

> On Tue, Apr 17, 2018 at 6:09 AM, Thautwarm Zhao <yaoxiansamma at gmail.com>
> wrote:
>
> >
> >  > 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.
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180417/784919e2/attachment.html>


More information about the Python-ideas mailing list