3 ms·
> The pattern is to return a value and have some non-local return for errors. For example, having a return value in C++ but throw an exception for errors. By "a
by OJFord 8y ago
> The pattern is to return a value and have some non-local return for errors. For example, having a return value in C++ but throw an exception for errors. By "always used", I'm just asserting that most people are familiar with this pattern and use it frequently.
I think it's nonetheless a helpful model.