This is why I think macros are such a problem. Rust Macros are, way, way better than in other languages, but it is like you say, a different language. I wish we had compile time programming in the same language. That would be insanely powerful.
@@simonfarre4907this exists in most homoiconic languages like LISPs. Clojure specifically is my favorite language with Rust as a close second for this reason exactly. In Clojure data structures and code have the same syntax and you can write functions (macros) that transform syntax in the same way that you transform normal data structures. This is the root of the lisp adage “code as data”