5 ms·
I really don't. Raise a `NotFound` exception in the method and catch that instead when you're calling...
by adamckay 3y ago
I really don't.
Raise a `NotFound` exception in the method and catch that instead when you're calling...
- Hasnep 3y agoI prefer having failures in the type signature so the type checker makes sure they're handled, although it depends on the failure, occasionally I just raise an error like you suggest.