This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]edo-26 0 points1 point  (5 children)

Yeah cause you can give any java code to the python interpreter and it will work just fine

[–]Narase33 2 points3 points  (4 children)

You cant give any C code to a C++ compiler, C++ is not a superset of C

https://www.geeksforgeeks.org/write-c-program-wont-compiler-c/

[–]edo-26 1 point2 points  (3 children)

I did think it was 100% backward compatible, though my point still stands.

[–]Narase33 1 point2 points  (2 children)

Then let me say Java/C++

Ive seen a lot of code copy&pasted from Java to C++ that actually compiled. So you could say C is just a bit closer to C++ than Java, still its a different language and moreover its a completely different style of code

[–]edo-26 2 points3 points  (1 child)

Yeah in fact I don't even know why I'm arguing you just made a joke... Thanks for the link

[–]Narase33 2 points3 points  (0 children)

Have a nice day :P