I didn't encounter this when I experimented with the package (here <https://github.com/albrow/fo>). So not sure. However, as an array, T cannot be a variable, it must be a constant... so perhaps it can be figured out - see https://play.golang.org/
On Thursday, November 1, 2018 at 11:54:31 AM UTC-4, Ian Denhardt wrote: > > Quoting Mandolyte (2018-11-01 06:30:30) > > > - it uses square brackets instead of (type .. ) for the type parameters > > What does it do with `type Foo [T] int`? The draft design cites this > ambiguity (is it a generic type with an unused parameter, or an array of > length T?) as the reason for not using square brackets. > > (Note that Alan Fox proposed elsewhere using [type T] to declare type > parameters as a solution, but it doesn't appear that Fo is doing this). > -- 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. For more options, visit https://groups.google.com/d/optout.