4 ms·
Yep. I've heard it said that Rust forces you to experience all the pain up front. C will happily compile very broken code. One of my formative memories learnin
by josephg 10mo ago
Yep. I've heard it said that Rust forces you to experience all the pain up front. C will happily compile very broken code.
One of my formative memories learning C came after I wrote a function which accidentally returned a pointer to a variable on the stack. It took me about a week to track that bug down. I found it eventually - and then realised the compiler had been warning me about it the whole time. I'd just been ignoring the warnings "while I got my code working". Ugh. The rust borrow checker wouldn't let you even compile code like that.
If you're going to be working in a programming language for years or even decades, I think the extra complexity (and extra difficulty while learning) is an investment that will pay off. But I'd be very happy for rust to stay a niche language for systems software. C#, Go, Typescript and Swift seem like great choices for making webpages and apps.