Comment on Compile-time JSON deserialization in C++parentComments−kazinator2yAlso, this: (defmacro macro-time (&rest forms) `(quote ,(eval `(progn ,@forms)))) forms are evaluated at macro-expansion-time, and their result is quoted, and substituted for the (macro-time ...) invocation.For instance, if we have a snarf-file function which reads a text file and returns the contents as a string, we can do: (macro-time (snarf-file "foo.txt")) and we now have the contents of foo.txt as a string literal.
Comments
Also, this:
forms are evaluated at macro-expansion-time, and their result is quoted, and substituted for the (macro-time ...) invocation.For instance, if we have a snarf-file function which reads a text file and returns the contents as a string, we can do:
and we now have the contents of foo.txt as a string literal.