composite-visitor-dual-ocp-coverage

Status: IN

Composite and Visitor can provide complementary OCP coverage for recursive structures: Composite enables adding new element types without modifying existing operations (standard OCP axis), while Visitor enables adding new operations without modifying existing element classes (inverted OCP axis) — suggesting that recursive structures may be extensible along both axes when these patterns are combined.

Justifications

Composite covers standard OCP axis (new types) while Visitor covers inverted axis (new operations) for the same structures

Depends on (SL): composite-as-universal-recursive-structure, visitor-inverts-ocp-axis

Depended on by

JSON