[Python-ideas] Left arrow and right arrow operators

francismb francismb at email.de
Fri Mar 15 16:02:45 EDT 2019


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




More information about the Python-ideas mailing list