decorator-breaks-object-identity

Status: IN

The Decorator pattern breaks object identity: a decorated component is not identical (==) to the original component, which can cause issues if client code relies on object identity checks.

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

Depended on by

JSON