On Tue, Jul 2, 2024 at 5:36 PM Diego Augusto Molina <diegoaugustomol...@gmail.com> wrote: > > Hi everyone! I wanted to ask about the error in the title: "cannot use a type > parameter as RHS in type declaration".
... > Considering the three approaches: (A) non-generic; (B) generic with struct; > (C) generic with an array of one element: > 1. Can you explain why this error happens ? what problems it would create > that was allowed? Any oneliner pointing to docs or just "look for x" is > great! I may be missing something too obvious. > 2. Are there other atlternatives you can think of, even dumb ones, and how > would they compare to the three above? > 3. Are there other differences or concerns you can think of, that were not > addressed above? See the discussion at https://go.dev/issue/43621. 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/CAOyqgcVTy__9ntwDNzJeXdoSp-LPQ43FrT580zMh4%2BWd2pRbKQ%40mail.gmail.com.