Replace Conditional with Polymorphism

Kind: technique

Layer: Extensibility Core

Record: lexicon:replace-conditional-with-polymorphism

Canonical: Lexicon

Replacing a branching conditional on type with polymorphic dispatch through a shared interface.

Listed in Lexicon terms, after Self-Registration and before Runtime Resolution.

Category

Enabled by

Refactors

Linked from