- 1 Post
- 5 Comments
At my previous workplace we had a C macro that was something like
#define CheckWhatever(x__, true__, false__) \ whatever(x) ? (true__) : (false__)I don’t remember this shit, so I’m just paraphrasing cursed C. The question one would ask is… why? Well, because you also want to do
#define CheckWhatever2(x__, true__, false__) \ CheckWhatever((x__ ##1), (true__), (false__)) \ CheckWhatever((x__ ##2), (true__), (false__))And, of course
#define CheckWhatever3(x__, true__, false__) \ CheckWhatever2((x__ ##1), (true__), (false__)) \ CheckWhatever2((x__ ##2), (true__), (false__))Long story short, someone wanted to
CheckWhatever6inside another macro. While debugging code old enough to vote, my editor suggested expanding the macro, which expanded to ~1400 lines for a single ternary operator chain. Fun times!
Never forget your roots
(setq x (if (> y 5) :foo :bar))
groctel@lemmy.worldto
RetroGaming@lemmy.world•What Game Boy game do you love that you never hear anyone talk about?English
2·3 years agoYooo the gba reboot is brutal! I remember playing the underground base level emulating with my psp eleven years ago. I love that game!
groctel@lemmy.worldto
No Stupid Questions@lemmy.world•Why is working class called working class?
6·3 years agoFrom the article: The proletarii constituted a social class of Roman citizens who owned little or no property. The name presumably originated with the census, which Roman authorities conducted every five years to produce a register of citizens and their property, which determined their military duties and voting privileges.


I have bad news for you