But you can't have your cake and eat it too. The language does not implement those checks because perhaps they're not so trivially implementable in the language.
Sure, rust is "safer" than C, but is it a better language? that's arguable.
> Sure, rust is "safer" than C, but is it a better language? that's arguable.
Obviously there are more aspects to a language than safety, so I'll give you that, but yes Rust is a better language than C in this aspect.
Don't forget that programming languages are meant for humans, not for computers. One of the primary goals of a programming language is to prevent humans from making dumb mistakes.
Sure, rust is "safer" than C, but is it a better language? that's arguable.