3 ms·
As someone who's been using Rust in production for over a year, and C on and off for 17 years, I can assure you Rust really delivers what it promises. The chal
by pornel 9y ago
As someone who's been using Rust in production for over a year, and C on and off for 17 years, I can assure you Rust really delivers what it promises.
The challenges are not exaggerated, but they do have solutions, so they're not deal-breakers in practice.
The learning curve is steep. It takes effort, but once you get it (and unlearn some C-isms), Rust is a quite productive language.
Some patters and data structures are not understood by borrow checker, so you have to fall back to coding as-safely-as-any-C program. However, thanks to the practice of wrapping risky bits in safe abstractions, they remain only a small fraction of any program.
It might feel that writing any "unsafe" code defeats the promise of Rust, but it doesn't. The concept of safe abstraction is quite powerful, and makes sense even for wrapping 100% C libraries, where you can encode informal constraints form the manual as code, and automatically prevent library API from being misused.