Hi! :-) I'd like to understand the reasoning in Go better.
This code is allowed: newlocalvar, _ := strconv.Atoi(somestring) And this code is forbidden: somestruct.field, _ = strconv.Atoi(somestring) At least it does not compile, and so far I have learned that the reason is you should not ignore errors or be encouraged to ignore errors. But why are local variables then different to fields? Is ignoring errors a bigger problem when the problematic values go into structures? They are more "on the outside" and create more problems? Or has there been another reason that these two code fragments are handled differently? -- 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. For more options, visit https://groups.google.com/d/optout.