Rusty thoughts on \"Parse, don't validate\"
Summary
This Rust-focused piece revisits the parse vs. validate idiom, illustrating how using type-level invariants (e.g., NonEmpty) and gradual parsing can eliminate unnecessary re-validations. It surveys examples from the nonempty crate, Rust's type refinements (AbsPathBuf), and JSON deserialization with serde to show how parsed data can carry guarantees instead of repeated checks.