Hacker News new | past | comments | ask | show | jobs | submit login
Tail Recursion for Macros in C (gustedt.wordpress.com)
13 points by ingve 7 months ago | hide | past | favorite | 2 comments



I was wondering the same thing about making macros optionally recursive. Because if they were recursive, then that feature and `__VA_OPT__` would be enough to make them Turing-complete.


An alternative in pure cpp is https://github.com/swansontec/map-macro




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: