On Wed, Jul 15, 2020 at 7:59 AM jpap <jpa...@gmail.com> wrote: > > Two thoughts: > > 1. How useful is it in practice to have separate start and end delimiters? > Does it matter for nested declarations? I didn't see any nested declarations > in the Draft Design document, for example. If allow the same token on both > sides, we could use the vertical bar, and not require the type keyword at all: > > func f(T|int|) > > struct{ T|int| } > > interface{ T|int| } > > []T|int|{} > > type S|T| struct { v T }
I think that vertical bars will have some of the same problems as angle brackets, since the vertical bar is itself an operator in Go. a, b = w | x, y | (z) Ian -- 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/CAOyqgcUgCLRSt__Sp9TQLtVF3dJGAWjrrEO4d1neCcjydLrukw%40mail.gmail.com.