2 ms·
You can write C in any language. You can also write any language in C. The fact that it's possible does not imply that it's a good idea. Some of the macros h
by cperciva 10y ago
You can write C in any language. You can also write any language in C.
The fact that it's possible does not imply that it's a good idea. Some of the macros here are in common use (e.g., countof, although often with other names); some will make experienced C developers say "what's this? Oh, you mean <insert expansion here>; why did you use a weird macro?"; and some, like the redefinitions of case and default are actively hostile and are guaranteed to result in bugs when exposed to experienced C developers.
For more of the same, see "things to commit just before leaving your job": https://gist.github.com/aras-p/6224951 https://gist.github.com/aras-p/6224951