Hacker News new | ask | show | jobs
by kristoff_it 3099 days ago
You make it sound like OOP is an inherently bad thing, and OOP is not mutually esclusive with FP as you seem to imply with your Haskell reference.

Funcional can be considered an alternative vs imperative and declarative, and usually languages are a mix of the three. And any of these 3 style can support OOP.

BTW, plenty of half-decent languages don't have generics.

1 comments

Objects are parametrizations of functions that possibly close over variables. Having types with functions defined in types with dot notation is a different thing.