Skip to content
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

[feature request] Sane mixing of conflicting mixins #10

Open
skull-squadron opened this issue May 29, 2013 · 2 comments
Open

[feature request] Sane mixing of conflicting mixins #10

skull-squadron opened this issue May 29, 2013 · 2 comments

Comments

@skull-squadron
Copy link

Given something like:

 @interface X : NSObject <FooMixin, BarMixin>

Both FooMixin and BarMixin define method 'hello'.

TLDR: a way to call all mixed hello's, in mixin order, returning the result of the last.

Could well be wrong, but assume the default behavior of mixing:

  • X gets Bar's hello.

The behavior needed is a way to annotate in X that hello should perform all mixed hello's.

This would be useful for DRY, especially for patterns that set defaults in protocol methods.

Imagine being able to implicitly modify viewDidLoad sanely from clean concerns. Now we're talking cleaner, modular code.

@Itheme
Copy link

Itheme commented Jun 28, 2013

And what about selector return values?

@vl4dimir
Copy link
Owner

Hm, a very interesting feature request. But indeed, what about return values? Would it be good enough if this extension would only support selectors which return void?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants