3 ms·
> C++ is strongly typed and compiles to native code, a much saner alternative than "anything goes JS". C++ (though statically typed) is weakly typed.
by hajile 8y ago
> C++ is strongly typed and compiles to native code, a much saner alternative than "anything goes JS".
C++ (though statically typed) is weakly typed.
- pjmlp 8y agoC++ is not C, if that is what you are getting at.
- hajile 8y agoC++ is not C, but is still weakly typed. I think even Rust is weakly typed in unsafe mode (I'm open to correction about that). This makes sense when you think about the CPU which is weakly typed and dynamically typed (it's also dynamically scoped unlike all the modern lexically scoped languages running on top of it).
- steveklabnik 8y ago"weakly typed" is not well-defined, however, I don't think that Rust is, even in unsafe. If you can provide a C or C++ example, I can tell you what that looks like in Rust.