I hope more languages get these features

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 year ago

"Wait Evan, did you say heap allocation? Isn't heap allocation at compile-time impossible?" ... Though, I'd bet that some Lisps were doing all this back in the 60s and 70s too, as is usually the case!

Yes, macros in lisp are just normal functions running at compile time, taking in the compile time arguments and outputting code.

  • source