5 ms·
The fact that so many commenters here are confused or surprised by what it means or how it works sort of proves to me that it is a bad idea to use this in your
by eigenvalue 8y ago
The fact that so many commenters here are confused or surprised by what it means or how it works sort of proves to me that it is a bad idea to use this in your code-- especially if anyone else might need to work on that code. I always prefer the clearer, obvious approach, even it is slightly longer.
- Myrmornis 8y agoI agree that many people find it surprising/ bad syntax. I’m one of them, I have to think and double think every time I consider using it. But it’s part of the language, and we should embrace our language that we use.
- kbumsik 8y agoIt is true that this is confusing for people who come across it for the first time, but it is easy to understand/remember once you know this feature.
- genidoi 8y agoA counter-intuitive feature is not worth using even if 9/10 python devs know about it. Which they don't seem to. https://twitpic.com/4a52sh https://twitpic.com/4a52sh Seems like bad usability.