Re:PEP 572: Python assignment expressions has been accepted
by bjoli on Thursday July 05, 2018 @03:22AM
(#17461450)
You could have the same looks as the regular if, but have it implicitly return a value. I was just too sleep deprived to be able to type out correct syntax on my phone.
Ruby returns the last thing in a method, which I feel is pretty sane.
Ruby returns the last thing in a method, which I feel is pretty sane.