[Python-ideas] "Assignment expression" with function call-alike syntax
Jacco van Dorp
j.van.dorp at deonet.nl
Mon May 28 02:37:47 EDT 2018
2018-05-26 11:00 GMT+02:00 Kirill Balunov <kirillbalunov at gmail.com>:
> The main point is to collect more information, since the idea of assignment
> expression will have a huge impact in all aspects of Python programming: how
> you structure your programm, how you write code, how you read code, how you
> parse code... Because at the moment the rule is simple that any name binding
> must occur only in statements.
>
> With kind regards,
> -gdg
Downside here is, if you first implement it like this, everyone will
be used to that implementation. If after that a special syntax gets
introduced, there will be people confusing it and having to use
multiple libraries which use the two different ways. And most people
will stick to the old way because it'll have more compatible python
versions, no matter how much better a new syntax could be. Unless you
want a deprecation cycle planning for a feature not even implemented
yet ?
I think that if implemented, it needs to be the final implementation right away.
More information about the Python-ideas
mailing list