News for hackers. Stuff that matters.
Re:Show HN: Compile-time HTML parsing in C++14 by mhh__ on Monday July 31, 2017 @11:57PM (#14897795)
There is no macro needed here. You just write the code, then execute it at compile time. This is designed properly, it's not any where near as hacky as C++'s constexpr
Re:Show HN: Compile-time HTML parsing in C++14 by junke on Tuesday August 01, 2017 @02:54AM (#14898429)
No need for macros, eval-when is a special operator designed for this:

    (eval-when (:compile-toplevel)
       ...)
You can also have read-time macros or load-time values, depending on what you need.