Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
gorilla/banana problem
  • Loading branch information
cognominal committed Jan 5, 2015
1 parent ff72f24 commit f2ed255
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions S99-glossary.pod
Expand Up @@ -740,6 +740,16 @@ Sometimes also a form of L</obfuscation>.
Good morning/afternoon/evening. Since the contributors are in many different
timezones, one contributor's morning is another contributor's evening.

=head2 gorilla/banana problem

"You wanted a banana but what you got was a gorilla holding the banana and the entire jungle."
says Joe Amstrong, Erlang creator, complaining of traditional
L</OO> inheritance based environment inflexibility.
In non L</dynamic languages>, you can't dynamically add L</attributes>/L</methods> for an L</objet>/L</class> so
you end up shoving everything you may ever need in a deep class hierarchy.
In Perl 6, the gorilla/banana problem is solved with L</roles> that group methods or
attributes. A role can be dynamically added to a class or an object.

=head2 grammar

A feature of Perl 6 that uses L</regex>es to implement a grammar for parsing
Expand Down

0 comments on commit f2ed255

Please sign in to comment.