I use vibe.d to create some REST interfaces from classes. However, vibe.d requires me to provide an interface and a class that implements this interface. My application is small and contains only one implementation of this interface, and it is very annoying for me to edit both places when I want to make some changes.
So the question is: is there any mixin or template that can generate interfacefrom a given definition class? It should be quite possible to implement, but I could not find any examples. std.typeconsIt has WhiteHoleand BlackHoleto automatically implement interfaces, but I want something opposite to them.
Thanks.
source
share