原书出处
Domain-Driven Design Tackling Complexity in the Heart of Software
78 原书第10章|Closure of Operations
Employee objects). lowPaidEmployees := employees select: [:anEmployee | anEmployee salary < 40000].
The Smalltalk Collections provide other such FUNCTIONS that return derived Collections, which can be of several concrete classes. The operations are not closed, because they take a "block" as an argument. But blocks are a basic library type in Smalltalk, so they don't add to the developer's mental load.
Because the return value matches the implementer, they can be strung together, like a series of fil
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch10lev1sec6.html
EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce