.. Maybe part of the confusion here is the difference between the representation of these slice types (ie in memory) and the definition of these slice types (in the language definition) - ?
They don't exactly align - it's the language specification that is 'the barrier' to conversion in simple cases such as slices made of elements with the same underlying types. The compiler is just matching the defined behaviour of the specification, whether or not going further would be easy to do. -- 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.