The advice in the 2014 talk applies to exporting specific types of errors as part of a package’s public API surface.
The article, on the other hand, advocates for local variables storing errors not to have distinct names.
The article, on the other hand, advocates for local variables storing errors not to have distinct names.
And I'm only asking about when you are giving an error a distinct name, not just naming it 'err'.