2 ms·
> This is textbook "parse, don't validate" anti-pattern. How so? “Parse, don’t validate” implies converting input into typed values that prevent representation
by antonvs 1y ago
> This is textbook "parse, don't validate" anti-pattern.
How so? “Parse, don’t validate” implies converting input into typed values that prevent representation of invalid state. But the parsing still needs to be done correctly. An unchecked unwrap really has nothing to do with this.
- kccqzy 1y agoGP completely misunderstands “parse, don’t validate” and also calls it an anti-pattern. GP clearly has no idea what this is.