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

Case and cond are nice, but they suffer from the expression problem. When you want to let other people add methods to your code without modifying the source you need to use multimethods (or protocols).

If your method only needs 1 argument then why should the other ones matter? I don't see a problem here. clj-kondo will guide people to name them as _ or _thing anyway so you don't even need to think about it.



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

Search: