News for hackers. Stuff that matters.
Re:A Defer Mechanism for C by whatshisface on Monday December 14, 2020 @10:11AM (#25418411)
>One of the key interest of C compared to more recent languages is that everything is explicit.

With macros this is not exactly true. I gesture towards the GObject system for an extremely complex situation in big important production software.

Re:A Defer Mechanism for C by quelsolaar on Monday December 14, 2020 @12:02PM (#25419875)
I agree. I have tried to come up with some reasonable way to constrain macros, but its really hard!
Re:A Defer Mechanism for C by whatshisface on Monday December 14, 2020 @03:09PM (#25422561)
The way to do it is, survey your macro use to identify common patterns, specify them formally, and then write a computer program that allows those patterns specifically but no others. In other words, design a higher-level language. ;)
Re:A Defer Mechanism for C by desiderantes on Monday December 14, 2020 @08:09PM (#25425774)