Y
Hacker News
new
|
ask
|
show
|
jobs
by
bruce343434
723 days ago
I think the best example of this is the strategy pattern. In that way, strategy classes are really just a wrapper around a function and its persistent, mutable internal data/state.