|
|
|
|
|
by atmosx
3143 days ago
|
|
I’ve read the first article. It was eye opening, cause I am writing a bot right now and using exceptions to control input flow. Made me think about my design. That said, it does not argue against exceptions. So, I am not sure what your argument is. |
|
So instead of some imagined return of "int or throw Exception" you now have "(int, error)", which basically means that the result of a function call can be any of these four options:
And due to the lack of Generics you can't abstract over your error handling.And due to the lack of proper ADTs you can't even properly model "value OR error" manually.