On Monday, 31 August 2020 06:32:09 UTC+1, Zakaria wrote: > > If the objections on the too magical handle part, why not cut that part > and retain the check part? > > Most of the time the we just forward the error on to the next level anyway. >
Often, good error handling requires replacing the error or wrapping it with context, rather than just passing the raw error upstream. Having a blessed way of saying "just return the raw error" will discourage good error handling practice. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/176ad5db-362b-499a-856e-ce83bb47a00eo%40googlegroups.com.