4 ms·
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 app
by agbell 5y ago
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.