Over in typing-sig we're considering a new syntax for callable *types*,
which would look like (int, int, str) -> float. A matching syntax for
lambda would use a different arrow, e.g. (x, y, z) => x+y+z.

On Wed, Sep 29, 2021 at 11:51 AM Stephen J. Turnbull <
stephenjturnb...@gmail.com> wrote:

> Dominik Vilsmeier writes:
>
>  > Hence the proposal is to add a new syntax via the new token `?`.
>
> I find that unreadable.
>
> If you're going to add new syntax, either bite the bullet and just
> allow 'λ' for 'lambda' (my preference as an old lisper), or
> 'x → f(x)' (following MRAB's earlier suggestion).  Or maybe omitting
> the function name from a def: 'def (x): f(x)'.
>
> _______________________________________________
> 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/K6ZOKOHBJQLCRDDWARTIPYGZB3IN25SG/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
--Guido van Rossum (python.org/~guido)
*Pronouns: he/him **(why is my pronoun here?)*
<http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________
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/WF5ZJ5DWOJD2BMI6FGQMSNPPL7USFOBW/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to