On 01/12/2021 10:05, Steven D'Aprano wrote:

Oh great, now you're going to conflict with walrus...

     def process(obj:Union[T:=something, List[T]]:=func(x:=expression)+x)->T:

We ought to at least try to avoid clear and obvious conflicts between
new and existing syntax.

Using `:=` is even worse than `=>`, and `=:` is just *begging* to
confuse newcomers "why do we have THREE different assignment symbols?"


You can't have it both ways.  Either you re-use `:=`, or you add a third symbol.
(There would be no actual conflict with the walrus operator.)
Best wishes
Rob Cliffe

_______________________________________________
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/63THLQLJW6FRNAY6TFBVD7W3HCKCQDZB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to