Skip to content

Commit

Permalink
added abstract diagram showing the EP
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed Jan 13, 2014
1 parent f026e17 commit 7cb8d10
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions from_oop_to_fp_-_inheritance_and_the_expression_problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,16 @@ It's nice and terse and does everything we want.

## The expression problem

```
------------------
----------- /-----> | A1, A2, B1, B2 |
| A1 | A2 | / ------------------
----------- ----<
| B1 | B2 | \ ------------------
----------- \-----> | A1, B1, A2, B2 |
------------------
```

The subtle difference only gets obvious when you want to add new
subclasses/subtypes or new functions to our software:
- **Only the OOP solution makes it easy to add a new class.**
Expand Down

0 comments on commit 7cb8d10

Please sign in to comment.