3 ms·
I have no idea what you are talking about. The fact that you can ignore the error, including doing so by accident, is the problem. Sum types solved this probl
by papsosouid 13y ago
I have no idea what you are talking about. The fact that you can ignore the error, including doing so by accident, is the problem. Sum types solved this problem a very long time ago, and there is simply no reason for a language created in the last decade not to have them. It is very simple conceptually, the function should not return a value and an error, because only one of those actually is valid. So it should return a value or an error.