3 ms·
The difference is that monadic result types work properly with generics. You can't really use checked exceptions generically at all (simplest example: you can't
by lmm 7y ago
The difference is that monadic result types work properly with generics. You can't really use checked exceptions generically at all (simplest example: you can't pass a function that throws a checked exception as a callback function, unless you write multiple overloads of any function that takes a callback), which really limits your ability to reuse code.