"Parse, don't validate" through the years with C++
https://derekrodriguez.dev/parse-dont-validate-through-the-years-with-c-/
#HackerNews #Parse #C++ #programming #software #development #coding #bestpractices
Parse, don't validate through the years with C++ | derekrodriguez.dev
Alexis King’s Parse, don’t validate had a huge impact on how I write code, particularly my stance toward Python type annotations in production. However, as someone who has written practically zero Haskell, the idea didn’t click for me until I started seeing other examples, like this one in Rust. This post explores how we can take this paradigm and apply it to a simple date-parsing problem in C++98, C++11, C++17, and finally C++23.





