polymorphism과 sealed data switch

subtype과 operation 중 어느 축이 자주 늘어나는지 비교한다.

Polymorphic method

새 subtype이 자기 behavior를 구현한다

extend types

External switch

닫힌 data에 새 projection을 쉽게 추가한다

extend operations
선택변화 축과 module owner를 기준으로 책임을 둔다

핵심: closed state·result·event model은 exhaustive switch와 잘 맞는다.