yshavit / mdq

MIT License
1 stars 0 forks source link

macro-ify selector registration #72

Closed yshavit closed 1 week ago

yshavit commented 1 week ago

Create a somewhat ugly macro that:

This actually results in more code (whoops!), but it means it's closer to foolproof to register a selector. You just add it to the selectors! list, and it handles parsing and dispatch for you.

I'm going to go ahead and say this resolves #62. It's far from perfect, but it's also plenty good enough for now. Maybe even over-engineered.