Something similar is in the pipeline: https://github.com/golang/go/issues/61372
When implemented, it will be spelled "zero" rather than "_" As I understand it, you'll still need to say 0, "" or nil where those are available for the type in question. Therefore in the f1() example you gave, you'll still need return 0, errors.New("something went wrong") -- 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/a17439a0-39cd-4fe3-99d9-63238f4b990bn%40googlegroups.com.