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

What? This has nothing to do with functional programming.

FP needs polymorphism too and as a matter of fact FP tends to be even more static.

In FP we have type classes, built via OOP in static OOP languages.

> Infact having just method you no longer need Polymorphism / Interfaces.

That’s false.



It's not. You can use multiple dispatch.


But then why would you? Isn't ditching type safety a bad idea most of the time ?




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

Search: