Y
Hacker News
new
|
ask
|
show
|
jobs
by
davidjnelson
3258 days ago
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.