Kev
09/30/2024, 10:22 AMEither<Error, Nothing>
?Sam
09/30/2024, 10:48 AMeither<Error, Nothing> {
// do stuff
// what goes here?
}
The return type Nothing
literally means that there is no possible return value. You can loop infinitely, or you can throw an exception, but you are not allowed to reach the end of the code block normally.Alejandro Serrano.Mena
09/30/2024, 11:36 AMraise
or an exceptionstreetsofboston
09/30/2024, 12:15 PM