4 ms·
Haskell is a great example where interface and implementation are decoupled.. typeclasses are used a lot to describe problems with similar patterns. Look at mon
by arianvanp 14y ago
Haskell is a great example where interface and implementation are decoupled.. typeclasses are used a lot to describe problems with similar patterns. Look at monads, monad transformers, applicatives and functors. I don't think half of them even have default implementations defined.
- cbsmith 14y agoYou're description of Haskell is accurate, but so often I find that encapsulation in Haskell is not all it appears to be. More often than not, you need to dig in to the implementation of the components you use.
- arianvanp 14y agoI find that argument valid for functional programming languages with no type system like LISP. They promised us black box abstraction without giving us hints about what kind of data a procedure takes. but with Haskell the type system usually gives sufficient hints on what is happening within a procedure
- deleted 14y ago[deleted]