yshavit / mdq

MIT License
1 stars 0 forks source link

can I formalize the various relationships? #62

Closed yshavit closed 1 week ago

yshavit commented 1 week ago

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?

Is there even any benefit to doing that?