Refined Types in Rust: Parse, Don't Validate
Note: This post was originally published on Entropic Drift.
The String Problem
How many times have you seen function signatures like this?
fn send_email(to: String, subject: String, body: String) -> Result<(), Error>;
fn create_user(email: String, ...
entropicdrift.hashnode.dev8 min read