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

case/cond is pretty readable, but I wouldn't say they provide a comparable api to multimethods.

From my perspective, I reach for multimethods when I want to provide my caller with the ability to declare their own "actions" as it were. The goal is to offer an open interface.

Without that need, yes, case or cond can be sufficient.



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

Search: