I guess the difference is that a builtin COULD be compile-time type safe. It could reject anything that is not a slice or an array, the same way append is type safe.
Le mercredi 3 août 2016 17:51:44 UTC+2, Thomas Bushnell, BSG a écrit : > > On Wed, Aug 3, 2016 at 7:36 AM T L <tapi...@gmail.com <javascript:>> > wrote: > >> Often, I need converting a []T to []interface{} to use the []interface as >> a variable length parameter. >> But converting a []T for []interface{} in a for loop is neither clean nor >> efficient. >> > > If there was a builtin that did it, it would simply need to do the same > loop. The memory representation is not the same. > > Thomas > > -- 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.