I have selectable things as MdElemRefs, and I have Selectors that act on them. Similarly, I have parsing logic that matches out to individual selector parsing funcs.
Is there any way I can formalize this in the code? Right now it's all by convention; can I make it type-safe?
I have selectable things as MdElemRefs, and I have Selectors that act on them. Similarly, I have parsing logic that
match
es out to individual selector parsing funcs.Is there any way I can formalize this in the code? Right now it's all by convention; can I make it type-safe?
Is there even any benefit to doing that?