Software development
fromMedium
2 weeks agoReturn type Are Contracts. Either[E, Option[A]] Breaks Them.
Public methods must make a single clear promise; encode absence as an explicit error variant (e.g., NotFound) and return Either[E, A] rather than Either[E, Option[A]].