Hello,
On Tue, 23 Feb 2021 09:35:58 -0500
Richard Damon <[email protected]> wrote:
[]
> My first thought to the idea of making an alternate syntax is the line
> from the Zen:
>
> There should be one-- and preferably only one --obvious way to do it.
> Although that way may not be obvious at first unless you're Dutch.
>
> This says that if the 'arrow' is a new alternate way of writing
> lambda, then lambda needs to be, at least informally, deprecated and
> declared not to be that obvious way to do it (but it can't be
> actually removed for a long time for backwards compatibility reasons).
No more than "+" deprecates __add__, or vice-versa. And no more than
various pop-up novelties (we now have more than one) deprecate sacred
'"%s" % var' syntax.
> Note, I thought that lambda was currently 'multi-line', it just isn't
> multi-statement, just a single expression, that could flow to
> following lines (and since often used inside a function call, being
> inside the '(' makes the continuation to the next line automatic)
Yes, people who colloquially say "multi-line", formally mean
multi-statement. (Alternatively, they mean "multi-line without tricks".)
[]
--
Best regards,
Paul mailto:[email protected]
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/YJKKNFTPBV7OHBQZTNV72GHTJ6NPTUMB/
Code of Conduct: http://python.org/psf/codeofconduct/