Reblogged by cstanhope@social.coop ("Your friendly 'net denizen"):
saramg@fosstodon.org ("SaraMG") wrote:
C: I am the best language, C++ is too obsessed with types.
Also C:
void foo(int a, float b) {
printf("%d -> %f\n", a, b);
}typedef void(*fn)(float, int);
int main(void) {
fn bar = (fb)foo;
bar(3.1415, 42);
return 0;
}
// outputs: 42 -> 3.1415C++: Who hurt you, man?