Skip to content

Commit

Permalink
added link to visitor pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed Nov 17, 2013
1 parent d560fad commit 87193ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion from_oop_to_fp_-_inheritance_and_the_expression_problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ In case `Base.hs` would get too long in our Haskell version
we could split in into `Step.hs` and `Display.hs`.
But still, if we would like to add a new object, we would have to edit
*all* the functions. There would not be one single point to do it.
Vice versa, the OOP solution would make it difficult to add a new
Vice versa, the OOP solution (without [visitor pattern](http://en.wikipedia.org/wiki/Visitor_pattern)) would make it difficult to add a new
function. We would have to edit the files of all derived classes.

Perhaps this is not a big surprise. In OOP our code is structured by objects,
Expand Down

0 comments on commit 87193ca

Please sign in to comment.