3 ms·
I think it's quite a common thing for people to say if they're not actually experienced in writing the languages. I've heard it from multiple people. As I say
by lochsh 7y ago
I think it's quite a common thing for people to say if they're not actually experienced in writing the languages. I've heard it from multiple people.
As I say in the blog post, it's common knowledge for people who are experienced in writing C and/or C++ that this isn't true. But it's a misconception that persists among other programmers.
- Laakeri 7y agoHave you seen practical cases where there has been issues because C code is not compatible with C++? The blog has nice toy examples, but would be nice to know if they actually occur in the wild.
- loeg 7y agoYes, all the time. Off the top of my head, I've run into: - C++ does not support 'foo([static N])' function declarations - C++ does not support 'struct A a = { .b = c, ... }' initializers The conflict arises when these are used in C headers, and then C++ programs attempt to include them.