This repository was archived by the owner on Jan 11, 2026. It is now read-only.
Reworked DSL #38
jmg-duarte
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
|
I believe the One thing I'd suggest changing, however, is moving the individual handler implementations into the attribute's scope, so it can use that context information in determining type substitutions. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently working on decoupling the existing macro into two main "libraries": the DSL and the checker.
This approach provides more flexibility w.r.t. the DSL while keeping the checking contained.
One of the main mistakes I did when implementing the first version can be summed up as premature optimization - I was trying to cut down on passes (noob mistakes) by doing checking and generation at the same time.
I noticed that the generation part can be provided standalone, it still provides enough value an would probably address bugs like #34. It would also simplify handling things like #37 and maybe even take care of #35.
Oh, and it shouldn't require the
modfor the generation 😅Some of my loose ideas and current state of affairs below:
cc @Dessix
Beta Was this translation helpful? Give feedback.
All reactions