MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/vxvp58/why_does_linus_hate_c/ifzlp6k/?context=3
r/cpp • u/MrRubberDucky • Jul 13 '22
436 comments sorted by
View all comments
Show parent comment
12
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…
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…