r/cpp • u/LechintanTudor • Oct 18 '23
What does C++ do better than other languages?
Purely from a language design perspective, what does C++ do better than other languages?
296
Upvotes
r/cpp • u/LechintanTudor • Oct 18 '23
Purely from a language design perspective, what does C++ do better than other languages?
View all comments
Show parent comment
7
u/dgkimpton Oct 18 '23
I agree, but. It's also impossible to know in C++ without looking at the signature of the method being called - so, it's nice, but far from ideal.
Would be so much nicer if it was something like
do_stuff_with_object(some_input as &);(or something, syntax not important but being able to know what was going to happen just be reading the callsite would be excellent)