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

Right, I wasn't saying polymorphism was the only solution. I was saying deeply nested if elses are hard to maintain. There's many solutions to avoid them. So I think we agree, use what makes sense given the context.


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

Search: