-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Mixin delegates #2331
Comments
See #965 (and closely related discussion started at #1648 (comment)). Well, no, you can't call a mixin like that:
And if you still need those delegates to be available as mixins you can wrap them into DRs right at the point of passing into
Alternatively you can use "tagged callbacks" (which are quite more verbose but may have their pros in certain more advanced cases, for instance when you need a delegate with parameters - this is what the "detached ruleset" is incapable of, at least directly (yet)). |
Closing as duplicate of #965. |
Thanks. It is actually what I want |
Not sure if this feature is not implemented, but i don't find the way to do this and issues creaded earlier.
I'd like to write some generic mixins taking other mixins as parameters such this:
The text was updated successfully, but these errors were encountered: