Hacker News new | ask | show | jobs
by bad_user 2611 days ago
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.

1 comments

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 ?