I am using vibe.d to generate some REST interfaces from classes. However, vibe.d requires me to provide both interface and class implementing this interface. My application is small and contains only one implementation of this interface, and it is very annoying to edit both places when I want to make some changes.
So the question is: is there any mixin or template that can generate interface
from given class
definition? This should be quite possible to implement, but I was not able to find any examples. std.typecons
has WhiteHole
and BlackHole
to autoimplement interfaces, but I want something opposite to them.
Thank you.