News for hackers. Stuff that matters.
Re:C Macro Magic by hevi_jos on Thursday February 28, 2019 @02:54AM (#19269752)
C is extremely simple. In fact is one of the few languages that you could manage to understand completely in the sense of knowing exactly what it does.

C macros on the other hand, should die. I use C a lot but never ever use c macros, they are evil. Extremely hard to debug, confusing and very weak.

When we want macros, we use Lisp, that have proper macros.

Re:C Macro Magic by bitt on Thursday February 28, 2019 @08:43AM (#19271242)
I'm not sure of all the valid use cases for macros, but I think they are useful when you need to do something simple. For example, a debug flag to run some code like verbose logging but you don't want to include that in the release binary. C# has preprocessor directives but I wish that java had something similar. I guess this is different than complex micros though.