Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Deleting code is a beautiful feeling. Python's new walrus operator has gotten a lot of hate recently, but a few days ago I was writing a script and realized I could get rid of a few lines (AND have my meaning be clearer) using the walrus operator. So satisfying.


As a fan of Erlang’s pattern matching, the walrus operator feels like an obvious win.

I do, however, resent Python 3 for removing pattern matching on tuples in function heads.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: