585
With PieMixin
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Metaprogramming is extremely useful for long term code readability. What you're doing is probably fine but we can't really evaluate that without seeing the actual code.
That's why I stopped writing code and started writing ASTs and AST transformers that can be configured to emit libraries.