ObjectiveMixin icon indicating copy to clipboard operation
ObjectiveMixin copied to clipboard

[feature request] Sane mixing of conflicting mixins

Open skull-squadron opened this issue 11 years ago • 2 comments

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.

skull-squadron avatar May 29 '13 04:05 skull-squadron

And what about selector return values?

Itheme avatar Jun 28 '13 10:06 Itheme

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?

vl4dimir avatar Jun 30 '13 15:06 vl4dimir