Purpose: Allow a property to specify a type by its method names to ensure that later calls to those names succeed without needing to specify a specific class. This would put the focus on behaviour and interface. Right now if I want to mixin behaviour to a number of classes and allow a class to work with all those examples I must use inheritance or generate a long list of classes that can be accepted, or avoid checking acceptance.
Let me know what you think of the idea. We can certainly add more complexity to specifying messages (arguments, etc.), but I wanted to start simple so we could discuss it.
Purpose: Allow a property to specify a type by its method names to ensure that later calls to those names succeed without needing to specify a specific class. This would put the focus on behaviour and interface. Right now if I want to mixin behaviour to a number of classes and allow a class to work with all those examples I must use inheritance or generate a long list of classes that can be accepted, or avoid checking acceptance.