On Mon, Nov 8, 2021 at 11:22 PM Rob Cliffe via Python-ideas <
python-ideas@python.org> wrote:

> I have more than once advocated
>      x:=default
> (and there is no clash with the walrus operator, even if others have
> said/implied that there is).


not a clash, but you could have a walrus in the default expression,
which could be pretty visually confusing. On the other hand, maybe that's a
really bad idea anyway. And otherwise I like it.

BTW, => would have a similar problem if it's adopted as a shorter way to
spell lambda. And that would be worse, as putting a lambda in a default
depression might be good style in some cases :-)

-CHB


-- 
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/W4Q23REGWZFV63F7DPTAXWJMM5PR7E4E/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to