@kirby
This is called chained assignment: https://en.wikipedia.org/wiki/Assignment_(computer_science)#Chained_assignment
And it's handled differently in different languages. In Python it seemingly works exactly it would in C, but in fact it's somewhat of a special case.
It's often done one-per-line just to improve readability — so people using different languages won't be confused by behaviour they might not expect.
@locness3
Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
m0xEE (m0xee@social.librem.one)'s status on Monday, 18-Dec-2023 02:06:59 JSTm0xEE