Skip to content

Commit

Permalink
emphasized the requirement of lists with mixed subtypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed Nov 17, 2013
1 parent 261c8e5 commit 83433d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion from_oop_to_fp_-_inheritance_and_the_expression_problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ The output of this program is:
## A typical Haskell implementation
The usual haskell approach to this could look like so:
Since one requirement for a solution is the ability to store objects
of different subtypes in the same list,
[typeclasses](http://codepad.org/6boPlYTK) are not the answer here.
So the usual haskell approach could look like this:
```haskell
-- Base.hs
Expand Down

0 comments on commit 83433d2

Please sign in to comment.