You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a good idea, but I'd like to point out that the given example may lead to mistakes. Adapters are also sometimes called wrappers, and many wrappers are not decorators nor adapters. I'd say wrappers are broader than these two design patterns. But I've seen both of them referenced by the name wrapper.
I agree that it is still called wrapper nowadays (GoF is a bit outdated and should be read with caution). Just pointing out that one may see the Decorator pattern as Wrapper pattern is a great thing, though.
Activity
npathai commentedon Oct 19, 2015
👍 Good idea.
bernardosulzbach commentedon Oct 24, 2015
This is a good idea, but I'd like to point out that the given example may lead to mistakes. Adapters are also sometimes called wrappers, and many wrappers are not decorators nor adapters. I'd say wrappers are broader than these two design patterns. But I've seen both of them referenced by the name wrapper.
iluwatar commentedon Oct 25, 2015
It is a valid point. Maybe this is why Wrapper is the secondary name (source: GOF book).
bernardosulzbach commentedon Oct 25, 2015
I agree that it is still called wrapper nowadays (GoF is a bit outdated and should be read with caution). Just pointing out that one may see the Decorator pattern as Wrapper pattern is a great thing, though.
Added alias names for GOF patterns #267
Update README.md (iluwatar#267)