I would argue that in the code example of the adapter pattern there should naturally be a need for abstraction of the word roar, rather than just translating bark into roar, which is semantically incorrect.
A logical explanation for the need of abstraction is that the hunter wants to listen to the sounds of animals. After all, we wouldn't want to confuse the hunter with roaring turkeys.
I 'd be open to submit a PR for this if you like.
I would argue that in the code example of the adapter pattern there should naturally be a need for abstraction of the word
roar, rather than just translatingbarkintoroar, which is semantically incorrect.A logical explanation for the need of abstraction is that the
hunterwants tolistento thesoundsofanimals. After all, we wouldn't want to confuse the hunter with roaring turkeys.I 'd be open to submit a PR for this if you like.