Skip to content

Glossary: Software Design Patterns in Go

Type explosion

Also written: class explosion

A new type for every mix of choices, so the number of types multiplies: two yes/no choices make 4 types and three make 8. Composition avoids it by making each choice a part.

Where the book teaches it

Related terms

EmbeddingCompositionFragile base class