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

You can do pretty much anything with default arguments, rather than overridable class methods. First class functions make this very flexible.

Sometimes this is a little inconvenient. I think the sign you really need a class is when you are sending in something called "object_type", and a dict of "object_type -> function".



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

Search: