[Python-ideas] Modern language design survey for "assign and compare" statements

Matt Arcidy marcidy at gmail.com
Mon May 21 07:37:50 EDT 2018


On Mon, May 21, 2018, 03:58 Rhodri James <rhodri at kynesim.co.uk> wrote:

> On 20/05/18 06:19, Matt Arcidy wrote:
> > On Sat, May 19, 2018, 11:07 Kirill Balunov <kirillbalunov at gmail.com>
> wrote:
> >
> >>
> >>
> >> I think I have a very strong argument "why are not others valid" -
> Because
> >> already three months have passed and among 1300+ messages there was not
> a
> >> single real example where assignment expression would be convenient or
> >> useful outside `while` and `if` statements. If you have a
> counterargument
> >> (with an example), I would be glad to see.
> >>
> >
> > comprehensions.  I don't think you read any of the messages.  about 1000
> > were solely about comprehensions.
>
> I'm afraid I haven't seen a convincing example of an useful assignment
> expression in a comprehension that wasn't also a convincing example of
> things that shouldn't have been comprehensions in the first place.
>

I haven't seen a convincing counter argument that doesn't axiomatically
depend on personal opinion.  Can you define your "shouldn't" in a way that
isn't just your personal taste?  I can't know from your statement here.


> --
> Rhodri James *-* Kynesim Ltd
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180521/cb898d2e/attachment-0001.html>


More information about the Python-ideas mailing list