Hacker News new | past | comments | ask | show | jobs | submit login
Metaprogramming: I Learned to Stop Worrying and Let Computer Write Code (kaveh808.medium.com)
10 points by oumua_don17 on July 24, 2022 | hide | past | favorite | 1 comment



I am doing similar things in C++, Java, C# and Typescript. You don’t need LISP style macros to do it. All you need is a way to declare your intent (what the end result should be) and then code that transforms the intent into running code. You can do it offline (generating code) and/or online (running an “interpreter” that “runs” your intent live).




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

Search: