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

> A possible approach is to use a macro

When macros start being used for metaprogramming in C, it's time to reconsider using C++.



When it's time to reconsider using C++, it's time to consider using something else :-)


Like the D programming language? :-)


I do see people extending C++ using the preprocessor for more complex metaprogramming. Those should consider D.




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

Search: