From Dev.to
Smart Constructors in Scala 3: Validate Once, Trust Everywhere
Opaque types give you shape safety, but not value safety. Here's how smart constructors and ValidatedNec close the gap. This lesson assumes you have used Either or have a brief exposition to the cats...
