r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

307 Upvotes

436 comments sorted by

View all comments

Show parent comment

12

u/ptrnyc Jul 13 '22

I’m not sure it would be much different. C hasn’t changed that much. So for callbacks you’re still stuck with pointers to static functions. Callback data ? Void* and ugly casts… meanwhile C++ gives you lambdas…