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

Pattern matching in python sounds like a GREAT idea.


That would be incredible, I really miss pattern matching when writing Python code. Fitting it into the existing style of syntax and the language semantics is a problem though.

Pattern matching in list comprehensions would be awesome too. List comprehensions are very cool in Python but they're so much cooler in Haskell :)




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: