Thanks. I think these are more complicated and less consistent, since they require adding syntax for `_`, but I can see a similar motivation.
On Sun, Jun 5, 2022 at 9:44 PM Nigel Tao <nigel...@golang.org> wrote: > On Tue, May 31, 2022 at 1:39 AM Will Faught <w...@willfaught.com> wrote: > >> Why not allow nil to be used as the zero value for type variables, to >> fill this gap? >> >> return nil // == V(nil) >> > > See also: > https://github.com/golang/go/issues/35966 > https://github.com/golang/go/issues/19642 > -- 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/CAKbcuKijDFrWP%2BiqLVk6yRZdge6T5zR6O3JAXE6sqFJO-2W7zA%40mail.gmail.com.