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

The pythonic way would be to have sort() and sorted() which either sort in place or return a sorted copy. Best of both worlds.


Command Query Separation is a very good general idea in programming that should be followed more often. Sadly it went out of fashion in 90s when everybody got hyped about OOP.




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

Search: