3 ms·
https://golang.org/doc/faq#nil_error https://golang.org/doc/faq#nil_error is not an excellent design. It's a serious bug that converting nil to an interface set
by prodigal_erik 11y ago
https://golang.org/doc/faq#nil_error https://golang.org/doc/faq#nil_error is not an excellent design. It's a serious bug that converting nil to an interface sets the type field to a meaningless value (nil doesn't have a type!) and ridiculous that the interface doesn't compare equal to nil (if it's not nil, what does it point to?)