Re:qsort.h – Quicksort as a C macro (2019)
by taneq on Sunday May 07, 2023 @12:32AM
(#35847955)
Maybe they don't want to move to a more advanced language, maybe they want to mess around with the C preprocessor. :)
[ Parent
| on HN ]
Re:qsort.h – Quicksort as a C macro (2019)
by WalterBright on Sunday May 07, 2023 @12:43AM
(#35848002)
If you want to show cleverness, by all means!
I still use some primitive tools, and know there are better alternatives, but I'm not going to defend sticking with them.
BTW, I did win the Obfuscated C contest one year, and (naturally) used the preprocessor:
just last night i was thinking how cool it would be for an IDE plugin that expands rust macros for easier grokking. now i need one for your #defines, lol
cargo expand?
Must... resist... being... nerdsniped... oh no too late, now I have to figure out what it's doing without looking it up. :D I've never entered the OCCC but I've read a bunch of past entries and always wanted to enter someday.