Hacker News new | ask | show | jobs
by chrsm 2690 days 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.