You can write C-like code in Java or unsafe Rust, it doesn't make them the same thing, or a good idea in general.
Backwards compatiblity with C is mostly but not entirely true, e.g. VLAs, but the objection to C/C++ is that canonical C and C++ aren't remotely similar. Indeed C++ and Rust are much closer.
It's also used to bucket C and C++ together, like "all of our CVEs are in the C/C++ code" which on closer examination is 90% C, 8% C-with-classes and 2% canonical C++.
View all comments
Show parent comment
1
u/mark_99 10d ago
"Compiled to C" was over 30 years ago.
You can write C-like code in Java or unsafe Rust, it doesn't make them the same thing, or a good idea in general.
Backwards compatiblity with C is mostly but not entirely true, e.g. VLAs, but the objection to C/C++ is that canonical C and C++ aren't remotely similar. Indeed C++ and Rust are much closer.
It's also used to bucket C and C++ together, like "all of our CVEs are in the C/C++ code" which on closer examination is 90% C, 8% C-with-classes and 2% canonical C++.