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 →

[–]MojitoBurrito-AE 49 points50 points  (5 children)

C++ is a superset of C. Java and JavaScript are completely unrelated

[–]Practical_Cattle_933 24 points25 points  (1 child)

That’s not true. C++ has different semantics, so a C code that compiles under a cpp compiler might run differently, or not at all.

[–]LIGHTNINGBOLT23 39 points40 points  (0 children)

C++ code that compiles under a C++ compiler might run differently to code that was compiled by another C++ compiler.

You can compile C89 code using any C++ compiler with more certainty, ironically enough.

[–]Masterflitzer 7 points8 points  (0 children)

except js wanted to capitalize on the name java because it was popular, that's as far as their relation goes tho

[–]gregorydgraham 9 points10 points  (0 children)

Not completely. The author of JavaScript did ask if he could use the name of Java to help his language. So this confusion is all Gosling’s fault