News for hackers. Stuff that matters.
Re:PEP 572: Python assignment expressions has been accepted by PurpleRamen on Tuesday July 03, 2018 @09:59AM (#17450207)
It's the syntactic sugars job to beautify the ugly. And your example is also a bit unfair, because you also use another syntactic sugar, the elif, to make it more beautyful. It only falls back to the ugly solution because I can't sweeten sugar for a similar dish.

But the overall question is: when is the sugar just syntactical, and at what point does it become a complete new taste?

There are no comments on this comment yet.