3 ms·
What would you use where correctness the top priority? Haskell? For the best thing about Rust isn't the performance (although that's great). It's just how relia
by nicoburns 7y ago
What would you use where correctness the top priority? Haskell? For the best thing about Rust isn't the performance (although that's great). It's just how reliable my Rust projects have been in production. If you wanted this level of reliability from another language, you'd have to write tests to cover all the possible failure cases. Which is much more time consuming than having the compiler point out all the possible failure points for you.
- jfkebwjsbx 7y agoIf correctness is the top priority, then formal verification methods and/or SPARK and/or specialized subsets of C with the tooling that comes with them for safety projects. Rust and Haskell and standard C and C++ are all non-starters.
- tome 7y agoIf by "correctness" you mean what I call "small-c correctness" ("this reference won't be null", "this function call doesn't write to the database") then Haskell is currently best-in-class. If by correctness you mean what I call "big-V Verification" then the sibling answer[1] is better for you. [1] https://news.ycombinator.com/item?id=22464576 https://news.ycombinator.com/item?id=22464576