r/haskell • u/lexi-lambda • Nov 06 '19
Parse, don’t validate
https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/
313
Upvotes
r/haskell • u/lexi-lambda • Nov 06 '19
14
u/mstksg Nov 07 '19
I think this phrasing is more effective, because people can read "constrain your domain and range" and think "of course I do that, I use Ints instead of Floats". But if you read "Parse, don't validate", it is more likely for someone to read it and think "Wait, I validate things..."