Closed bash closed 1 year ago
We have a SelectLeft for Either. It might be nice to also have inspect for the error case. Use case: Reading an optional value while logging a warning if it's not present:
SelectLeft
Either
ReadConfigurationFile() .OrElse(() => { logger.Warning("Configuration file is missing")); return Option<ServerIniConfiguration>.None; });
We have a
SelectLeft
forEither
. It might be nice to also have inspect for the error case. Use case: Reading an optional value while logging a warning if it's not present: