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

Pattern matching in Python is such a mess.

Python 3 eliminated the ability to match on tuples in function heads.

For loops can match on tuples, but lambda headers can’t.

As an Erlang fan, it’s maddening.



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

Search: