On 3/13/19 7:44 PM, David Teresi wrote:
> `->` would not be ambiguous in the proposed cases, but it does already
> mean something elsewhere in the language as of 3.5:
>
> def concat(a: str, b: str) -> str:
>     return a + b
>
> This could potentially cause confusion (as with the % operator being
> used for modulo as well as string formatting).
IMHO in that context the asymmetry is still there:

(a: str, b: str) -> str

And the operator is the function.

Regards,
--francis


_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to