News for hackers. Stuff that matters.
Re:Curl is C by zeusk on Monday March 27, 2017 @10:15AM (#13967848)
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.

Re:Curl is C by Aaargh20318 on Monday March 27, 2017 @11:06AM (#13968302)
> 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.

Re:Curl is C by macintux on Monday March 27, 2017 @11:17AM (#13968391)
> One of the primary goals of a programming language is to prevent humans from making dumb mistakes.

That clearly wasn't the case when C was designed.

Re:Curl is C by anp on Monday March 27, 2017 @11:43AM (#13968645)
I'd wager that using C prevents large classes of errors that would be common place in assembly.

That said, colloquial history seems to say that there were plenty of languages which did a better job at that than C.