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

Yes, it did strike me how JS and Ruby are hard to read compared to Python's "if x in [a, b, c]".

Moreover, the memoise part is better handled with a decorator: it is a special behavior of the function and don't relate to its logic (its body).



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

Search: