Hallöchen!

Patrick Smith writes:

> [...]
>
> Here F is a simple, non-generic function, with no type
> parameters. It cannot be instantiated. Any attempt to explain what
> this code would do if it were legal (which it should not be)
> should not involve generics, type parameters, or instantiation.

Yes.  I don’t suggest to change anything in Go.  I only explained
what I had expected by theorising about a different compiler
behaviour.

That []float64 cannot be passed to []any is not intuitive (at least
in my brain FWIW), but it is a lesser-evil compromise the language
makes, as any programming language must make many compromises.

Regards,
Torsten.

-- 
Torsten Bronger

-- 
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/87sf6gxnx2.fsf%40physik.rwth-aachen.de.

Reply via email to