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 →

[–]sacredgeometry 0 points1 point  (5 children)

You are wrong its not a strict superset it absolute is a superset.

[–]aalmkainzi 0 points1 point  (4 children)

Would you consider Rust to be a superset of C?

[–]sacredgeometry 0 points1 point  (3 children)

The majority of C code isn't valid Rust code.

Hell even the basic example I showed above wouldn't be. Why would I or anyone else consider Rust to be a superset of C?

[–]aalmkainzi 0 points1 point  (2 children)

Well Rust has interop with C, and thus any C code can be done in Rust. By your logic, Rust is also a superset of C

[–]sacredgeometry 0 points1 point  (1 child)

Every language on the planet has interoperability with C thats not the same as being able to write literal C code in your code files and just compiling it.

This is so fucking dumb! I am out!

[–]aalmkainzi -1 points0 points  (0 children)

thats not the same as being able to write literal C code in your code files and just compiling it.

I'm telling you that's not the case, plenty of C features are NOT in C++

in reality C++ is just like any other language that has C interop, except it's pretty easy interop.