Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

code generators are programs written in an existing programming language, which produce target language source code as output

macros are programs written in a separate, unique, often turing-complete meta-language, which is implemented entirely in the compile phase of the language which supports them

they're in no way equivalent



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: