--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/37978205-dafe-40e3-bf6d-f3f55aff7463n%40googlegroups.com.
On Jan 14, 2026, at 7:54 AM, 'Brian Candler' via golang-nuts <golan...@googlegroups.com> wrote:
OK, it's a block scope thing, because using an "if" statement I can also violate the rule that "at least one of the non-blank variables is new".
--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/67a77745-1391-46b1-99dd-7a2cf4a0f496n%40googlegroups.com.
On Jan 15, 2026, at 5:38 PM, Mike Schilling <mike.s.s...@gmail.com> wrote:
It's handy behavior, because it let you write
--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/c8bb7987-500f-464e-9741-bc8054076d26n%40googlegroups.com.
On Jan 14, 2026, at 11:43 AM, Robert Engels <ren...@ix.netcom.com> wrote:I know it won’t/can’t change - but took the opportunity to rant :)
On Jan 15, 2026, at 6:37 PM, Mike Schilling <mike.s.s...@gmail.com> wrote:It's handy behavior, because it let you writex , err := method1()if err !=nil {...}y , err := method2()if err !=nil {...}instead of having to have multiple error variables.
On Jan 15, 2026, at 6:44 PM, Robert Engels <ren...@ix.netcom.com> wrote:No doubt, but it also increases the cognitive load at the call site - which is sort of against Go’s desire for explicitness.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/0AFDB5C9-475C-43D9-8AC3-258619750986%40ix.netcom.com.
On Jan 15, 2026, at 9:36 PM, Mike Schinkel <mi...@newclarity.net> wrote:
Not that the best software is designed by consensus but I appreciate the support Mike. I like Go. Nothing is perfect. It’s amazing they were able to add generics in a backwards compatible manner. But I long for a Go 2.0 where they broke compatibility and fixed some critical errors that I suspect the core Go is well aware of.
It's handy behavior, because it let you writex , err := method1()if err !=nil {...}y , err := method2()if err !=nil {...}instead of having to have multiple error variables.