3 ms·
I don't get, why author is bitching about validation. What's the point in referencing article about Haskell, if Java don't have such parsing libraries. I've a
by winnie_ua 4y ago
I don't get, why author is bitching about validation.
What's the point in referencing article about Haskell, if Java don't have such parsing libraries.
I've also saw that article translated to Rust, but it ended being article, not library. And many questions of how to represent valid state remained unanswered.
And example provided, with throwing exception in constructor: that approach would just throw single error, but javax.validation approach allows to return list with ALL failed validations, so client don't have to fix errors one at a time and retrying to see next error.
Small complain from me: EmailAddress class is not zero cost(unless java would have value types), but actually java devs do not care about this.