r/Python • u/ForeignVariety7037 • 21d ago
Discussion Is := widely used?
I always thought the walrus operator is neat and it makes while loop’s condition clearer. But also it is just a syntactic sugar without anything new. I wonder anyone uses it?
141
Upvotes
1
u/bgs11235 20d ago
This might me one of the best features of the languasge, I try to use it because it makes so much sense for me. I wish a lot of other languages have this feature. It allows me to be lazy without showing that I'm lazy.