|
|
|
|
|
by dagss
2925 days ago
|
|
Has anyone worked on Lisp-like macros in Go? Executing code at compile time to emit AST and compile it.. That is what I feel is really missing. Even with strictly a compile-time phase (no run-time macro evaluation) it could be quite useful. Starting with generics seem to lead down the dark path of C++ template metaprogramming.. I would rather do something like type StrBox = MakeBoxType!(string) ...and have clean hygienic macros to generate my "generic". Syntax candy can be added to that to get generics...but starting with generics and only supporting that went really really badly for the C++ ecosystem. |
|