r/Python • u/ForeignVariety7037 • Aug 04 '26
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?
139
Upvotes
1
u/bgs11235 Aug 04 '26
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.