Re:Parsix: Parse Don't Validate
by agbell on Saturday May 15, 2021 @10:28PM
(#27170721)
Yeah, refined types are a great solution to this problem, but can lead to slow compile times. Just having private constructor for a case class and a public apply method that is an Option or Either or something can go a long way in my experience.
[ Parent
| on HN ]
There are no comments on this comment yet.