On Wed, Jan 14, 2026 at 6:09 PM Robert Engels <[email protected]> wrote:
> Yes it does. You can declare new variables while assigning to old in Go. No it does not AFAICT. You wrote: """" ... mixing of new and old declarations with new variables possibly being introduced or old ones shadowed. """" Please show a playground program where this happens. Note: shadowing can happen only across blocks. The rules for short variable declarations apply only within one block. Caveat emptor: Go specs do not define the term "shadowing". So you may be using a very different definition of shadowing than most other people have in mind when talking about shadowing variables in Go. -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-Un_OgpHP0E5y%2B8cQYFpqioSW4HWT_1nfsj%3Dej_jdRR5A%40mail.gmail.com.
