Andrei Bechet
01/25/2021, 4:33 PMEither<SomeFailure, Unit>
case? Say I have to set something and don’t care about the result?
We found out the hard way that having Unit
in there could be a potential problem since the compiler does not oblige us to see inside.
thanksYoussef Shoaib [MOD]
01/25/2021, 4:38 PMsuspend
normally since it allows you to handle errors and everything like that.Andrei Bechet
01/25/2021, 4:39 PMno exceptions
…not yet no side effects 🙂Youssef Shoaib [MOD]
01/25/2021, 4:41 PMobject OperationSucceeded
that can be used like Either<SomeFailure, OperationSucceeded>
should work quite well for you. You'll just need to make sure that after you perform the setting of whatever value that you return the OperationSucceeded object.Andrei Bechet
01/25/2021, 4:42 PMYoussef Shoaib [MOD]
01/25/2021, 4:43 PMMarius Kotsbak
01/26/2021, 8:03 AMAndrei Bechet
01/26/2021, 8:04 AMEither
wayMarius Kotsbak
01/26/2021, 8:04 AMAndrei Bechet
01/26/2021, 8:04 AMMarius Kotsbak
01/26/2021, 8:05 AMMarius Kotsbak
01/26/2021, 8:05 AMMarius Kotsbak
01/26/2021, 8:06 AMAndrei Bechet
01/26/2021, 8:06 AMAndrei Bechet
01/26/2021, 8:06 AMMarius Kotsbak
01/26/2021, 8:07 AMAndrei Bechet
01/26/2021, 8:12 AMMarius Kotsbak
01/26/2021, 8:48 AM