3 ms·
>I don't understand how what you suggest is distinct from exceptions as we already know them. In the handling, something you catch vs something you check the r
by coldtea 12y ago
>I don't understand how what you suggest is distinct from exceptions as we already know them.
In the handling, something you catch vs something you check the return value for (e.g. with an Optional).
So, it's like an (implicit) try/catch block, where the catch just returns an error value.