# Type-Switch Dispatch

> Dispatching behavior with a switch on an object's type instead of double dispatch through a visitor.

Record: `lex:type-switch-dispatch`
Kind: anti-pattern
Layer: [Design Patterns Core](https://banes-lab.com/records/layer/design-patterns-core.md)
Canonical: https://banes-lab.com/ontology/lexicon#lex-type-switch-dispatch

## category

- [Behavioral Patterns](https://banes-lab.com/records/lex-category/behavioral-patterns.md)

## referenced-by

- [Visitor Pattern](https://banes-lab.com/records/arch/visitor-pattern.md)
- [Dynamic Dispatch](https://banes-lab.com/records/arch/dynamic-dispatch.md)
