3 ms·
I think the phrase is a misquote. I think the original quote is "if it compiles, it runs." Secifically for canonical, safe Rust. As in: "if it compiles it runs
by virtualritz 4y ago
I think the phrase is a misquote. I think the original quote is "if it compiles, it runs." Secifically for canonical, safe Rust. As in: "if it compiles it runs and does not explode in your face in a place you didn't expect."
After four years of Rust (and 25+ of C++) I find this very true for the former and rarely for the latter except in extremely simple programs.
And yes, this says nothing about correctness as far as what the code is intended to in the first place.
But you are wrong when saying this, too, applies to e.g. PHP or JS in this context. For the simple reason that they are dynamically typed alone. The class of errors/side effects that this enables is a whole different league.