On Mon, 6 Apr 2026 at 17:56, Didier Kryn <kryn@???> wrote:
>
> But this leads to dangerous constructs like "if(n=0)" being valid.
> If an assignment was not an expression, this major source of errors
> would disapear magically. But you would need to write "n=0; k=0" instead
> of "k=n=0;"
>
Or "k=n=0" would have to be explicitly defined in the grammar so that
this is still valid. That's what Python chose.
ChrisA