double-dispatch-eliminates-type-switching

Status: IN

Double dispatch eliminates fragile dynamic_cast/type-switch chains: the glyph's virtual CheckMe resolves the element type (first dispatch), then calls back the analyzer with the correctly typed this pointer (second dispatch) — this is the core mechanism underlying the Visitor pattern.

Source: entries/2026/06/17/gof-oo-chunk-6.md

Depended on by

JSON