|
|
|
|
|
by vips7L
1866 days ago
|
|
Do you really want to inherit all the functions of Collection? Isn't this the anti-pattern everyone complains about on inheritance vs composition? This just looks like it's confused about whether it is a collection or has a collection. Personally, I'd just rather take a collection by composition and only expose the small part of the API I actually want. I guess though this is the standard decorator pattern you'd normally see from GoF. |
|