Please, don't make type optional. IMO, removing it altogether with this proposal (type any = interface {}) is probably great. Making type mandatory (as originally proposed) is fine. Making it optional is much worse than both those options. As much as possible, there should be one way to do it.
On Sunday 26 July 2020 at 06:55:12 UTC+1 Carla Pfaff wrote: > On Sunday, 26 July 2020 at 07:06:16 UTC+2 Carla Pfaff wrote: > >> Maybe gofmt could rewrite "interface{}" to "any", so there won't even be >> such a question for new code. >> > > When I think about it, that's probably not possible for gofmt to do in a > safe way. > -- 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/abce5b15-881f-419f-a5f6-e7f34d4f7154n%40googlegroups.com.