#option

[ follow ]
Software development
fromMedium
2 weeks ago

Return 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]].
[ Load more ]