On Oct 11, 2023, at 11:09 AM, Torsten Bronger <bron...@physik.rwth-aachen.de> wrote: > > Then, all boils down to the fact that you can’t pass []float64 as an > []any. To be honest, I still don’t fully understand why this is > forbidden, so I just accept that the language does not allow it.
I think in the first case []any is really []interface{} and []float64 is not compatible with it. While in the second case []E where E is any type is a *constraint*. That is "any" has two different meanings in two different contexts. -- 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/01E7C73A-AA08-48D1-A76C-8FFD3A208CC7%40iitbombay.org.