-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new API and old composition #5
Comments
I don't understand your second sample since it isnt valid. But... |
Ok I think I follow you now...you are asking to extend all possums using a compose call on the builder factory. |
Perhaps I'm missing something obvious here, but by changing the api to "possum returns something you interact with" from a "possum is the final step" I've had to rethink how composition works:
old
This makes it rather easy to create a highly-composed stamp that sits on top of the base possum implementation.
new
This gives the implementation override possibility over the decoration because of the order of invocation on
.compose()
. It's different, and probably for the better, but still: I DONT LIKE CHANGE!I suppose I could monkey patch the old functionality, but I don't like monkeys:
Thoughts?
The text was updated successfully, but these errors were encountered: