-
Notifications
You must be signed in to change notification settings - Fork 109
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
nicer multiple decorator support #40
Comments
So the precondition is usable by itself, so I also have this:
Which I realize now allows this slightly tidier version
|
Closing since this is not an issue. |
@micheles is there somewhere else I should put it? |
No, it is simply that I have no interest in making the syntax for composing decorators easier. It is best not to stack together too many levels of decorators. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had a suggestion and wasn't sure where to put it, the basic idea is could the decorate function support multiple decorators in a single call so that:
could be rewritten as:
Maybe I'm just approaching decorator composition wrong, if so I'd love to see an alternative way.
The text was updated successfully, but these errors were encountered: