>    $(a=7, $(a=a+1, a*2))

I suspect you ALREADY have bash installed on your computer, you don't need Python to emulate it.

On Sat, Apr 28, 2018 at 6:22 AM, Zero Piraeus <schesis@gmail.com> wrote:
:

On 28 April 2018 at 07:07, Tim Peters <tim.peters@gmail.com> wrote:
> [...] For that matter, I'd be fine too with shortening it to "let".  In
> fact, I prefer that!  Thanks :-)

If you really wanted to overcome objections that this looks too much
like a function, you could spell it "$". I'm not sure what I think
about

    $(a=7, $(a=a+1, a*2))

yet, but it doesn't make me want to run screaming in the way that := does.

I think I finally worked out why I have such a violent reaction to :=
in the end, by the way: it's because it reminds me of Javascript's
"===" (not the meaning, but the fact that it exists).

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



--
Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons.  Intellectual property is
to the 21st century what the slave trade was to the 16th.