Saša Šijak
10/24/2019, 11:42 AMTry is deprecated and we are pointed to Either. So how should I use Either in the following case where I have a code calling 3rd party library which can throw runtime exceptions (I don’t care which one, just if it failed and if not I want the result) :
Try {
callLibraryCodeWhichCanThrowRuntimeExceptions()
}
How to idiomatically construct Either for such cases?