3 ms·
Best practice is to return concrete types for everything, but error is one of those "special" cases that people tend to return an `error` for, IME. You can alw
by chrsm 8y ago
Best practice is to return concrete types for everything, but error is one of those "special" cases that people tend to return an `error` for, IME.
You can always unwrap it via type assertion, however ugly that may be.