Re: [go-nuts] [generics] Bugs + something else

2020-08-31 Thread Ian Lance Taylor
On Mon, Aug 31, 2020 at 5:49 PM p...@pjebs.com.au wrote: > > 1. > For this Go 2 snippet: https://go2goplay.golang.org/p/vbfBBmjxaMi > > Why can't I use square brackets when calling the constructor? Sorry, the Go 2 playground isn't fully up to date. > 2. Variadic `any` types + allowing a called

[go-nuts] [generics] Bugs + something else

2020-08-31 Thread p...@pjebs.com.au
1. For this Go 2 snippet: https://go2goplay.golang.org/p/vbfBBmjxaMi Why can't I use square brackets when calling the constructor? 2. Variadic `any` types + allowing a called function() to be used as an argument + return arguments types and numbers based on input arguments I want to implement