this post was submitted on 02 Sep 2024
888 points (99.2% liked)

Programmer Humor

32483 readers
500 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Incase it doesn't show up:

you are viewing a single comment's thread
view the rest of the comments
[–] pelya@lemmy.world 1 points 2 months ago (1 children)

I know at least three ways, one of them involves variadic macros.

You don't even need to look that far, take any sufficiently aged library, like OpenGL.

[–] SpaceNoodle@lemmy.world 1 points 2 months ago (1 children)
[–] pelya@lemmy.world 2 points 2 months ago

Yet I still had an urge to explain an obvious thing. Because it's C++, so everyhing goes. There are even tools to auto-generate C++ interfaces, because of course someone decided that C++ is inadequate and must be improved using some kind of poorly-documented ad-hoc extension language on top of C++.