Skip to content

Commit 1dc460b

Browse files
committed
intro: mention banana-gorilla-jungle problem
1 parent ec21cea commit 1dc460b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

doc/introduction.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ the Expression Problem:
99
to add new operations on the existing types, and new types to the existing
1010
operations, without modifying existing code?
1111

12+
Open-methods also address the banana-gorilla-jungle problem:
13+
14+
> The problem with object-oriented languages is they’ve got all this implicit
15+
environment that they carry around with them. You wanted a banana but what you
16+
got was a gorilla holding the banana and the entire jungle. — Joe Armstrong,
17+
creator of Erlang progamming language
18+
1219
As a bonus, open-methods can take more than one argument into account when
1320
selecting the appropriate function to call - aka multiple dispatch. For that
1421
reason, open-methods are often called multi-methods, but that term is

0 commit comments

Comments
 (0)