On Mon, Aug 31, 2020 at 5:49 PM p...@pjebs.com.au <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 function() to be used as an 
> argument + return arguments types and numbers based on input arguments
>
> I want to implement a `must` function which I proposed here: 
> https://github.com/golang/go/issues/32219
>
> Based on the current generics proposal, I don't seem to be able to do so.
> Am I missing something or is must outside its ambit?

The current design draft does not support variadic type parameters.
Maybe someday.

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/CAOyqgcUFPaZoU46rPsS-RpXA2eAM2Xnr1dEXi_b%3DtHXNGm55MA%40mail.gmail.com.

Reply via email to