3 ms·
There's a saying about Rust that it takes more effort to get a Rust program to compile without errors, but once it does, chances are it will work correctly. Thi
by trevyn 6y ago
There's a saying about Rust that it takes more effort to get a Rust program to compile without errors, but once it does, chances are it will work correctly. This seems counter-intuitive coming from other languages, but has been borne out by my experience. The strong typing and compiler guarantees push most run-time errors or unintended behavior to compile-time.
As a result, a lot of the iteration that happens is between me and `rust-analyzer` and `cargo check`, which, as you note, is much faster than a compilation pass with codegen and link.
- andrewflnr 6y agoThat used to be a Haskell saying, and I suspect it's still more true there...