3 ms·
For the readAllText example, could it return Result<string, Exception>?
by bogdanoff_2 7y ago
For the readAllText example, could it return Result<string, Exception>?
- xeonoex 7y agoYes, but you can still argue just throwing it might be better. This also affects the stack trace, because, at least in C# (so probably F#) `throw ex;` is different than `throw;`, which rethrows the exception as if it weren't caught.