Lyhr


Comments:

Using system.collection(.*) is a code smell

posted by LyhrLyhr(315) 4 years, 6 months ago 0

Point taken with the FooBar, next time there will be no FooBar ;-)

---

Why should the Composite pattern only deal with Tree structures? (The Composite Design pattern allows a client object to treat both single components and collections of components identically)

And anyways the composite class could easyly be rewirtten, to accept 2 instances of IFooBar. Then we could greate a tree structure by creating multiple coposites.
But whats the point? the list composite solved the problem?

Reply