I suspect the downside is that it'll promote blind propagation of errors.
In rust that's fine because the type system will document what error types can be returned.
In golang, it important that every error type that can be returned is manually documented.
Otherwise, it's better to just panic, since nobody can handle unknown errors anyways..
In rust that's fine because the type system will document what error types can be returned.
In golang, it important that every error type that can be returned is manually documented. Otherwise, it's better to just panic, since nobody can handle unknown errors anyways..
Or am I missing something?