visitor-exposes-pattern-mutual-constraints

Status: IN

The Visitor pattern demonstrates that design patterns impose mutual constraints: Visitor directly inverts OCP's standard extension axis (favoring new operations over new types), proving that applying one pattern necessarily forecloses options that another pattern assumes — which is exactly why indiscriminate pattern application is harmful and judgment about which extension axis to keep open is essential.

Justifications

Visitor's OCP inversion is the strongest evidence for why pattern judgment matters

Depends on (SL): visitor-inverts-ocp-axis, pattern-judgment-required

Depended on by

JSON