The <Support delegating by signature not by interf...
# language-evolution
r
The Support delegating by signature not by interface proposal to allow
SomeInterface by someInstance
delegation to an object that does not implement the interface, but does fulfil it, seems to have rather died... which makes me very sad for reasons I elaborate in this comment. (I've seen a suggestion to use context parameters - but when I did that, it reintroduced the coupling between the modules and all of the parameter types by needing to use an inline function.)
y
FWIW, it's definitely a good candidate for a compiler plugin!
r
That's true, it's pure syntax sugar using existing syntax...
y
Your case can definitely benefit from context parameters; I know it's a lot, but if you can, I'd love a simplified file or something demonstrating the design problem. I can then turn it into a nice context-y solution
➕ 1