4 ms·
> Well, when writing Haskell I'm not dealing with object instantiation, OO-classes and OO-subclassing. I think what the person you're replying to is saying is
by vectorjohn 11y ago
> Well, when writing Haskell I'm not dealing with object instantiation, OO-classes and OO-subclassing.
I think what the person you're replying to is saying is you actually are. You don't literally write "Foo x = new Foo()" but that's just a syntactic feature of some language. Haskell has types and classes and sub classes. You just don't write them the same way.
- cies 11y agoI upvoted you, but I strongly disagree with that I actually am using those in Haskell (knowing that you did not say that but merely point out what was said). In the theoretical sense OO and FP share some concept like encapsulation and polymorphism. But a class in C++/Java/Ruby is whole other thing then type-classes in Haskell.