Encapsulate State

Kind: technique

Layer: Structural Core

Record: lexicon:encapsulate-state

Canonical: Lexicon

A technique for making a module's state private and exposing only operations that keep its rules.

Listed in Lexicon terms, after Hide Delegate and before Restrict Exports.

Category

Refactors

Linked from