Code Review
Code Review
Posted Nov 14, 2025 11:02 UTC (Fri) by bredelings (subscriber, #53082)In reply to: Code Review by Vorpal
Parent article: Rust in Android: move fast and fix things (Google Security Blog)
> That would certainly mirror my own subjective experience of coding in Rust: once I get the compiler to accept my code (which takes longer than in C++ sometimes), it usually works correctly on the first try, or only has some trivial logic bug ("oops, I forgot to actually write out the result to a file").
>
> My educated guess as to why this is, is that some of the non-memory safety features of Rust help: in particular sum types and linear types (well, affine types really).
>
> My educated guess as to why this is, is that some of the non-memory safety features of Rust help: in particular sum types and linear types (well, affine types really).
Yes, people say the same thing about Haskell -- once you fix all the compile errors it often works the first time. And Rust and Haskell have very similar type systems.
