Hi! On Sun, Apr 22, 2018 at 09:48:13PM -0700, nsakth...@gmail.com wrote: > this pattern requires a language level change to avoid unwanted array copy [...] > but shouldn't the language provide an extension to already available syntax
The language is trying to avoid hiding performance-critical things (like copying an array) by nice syntax. You're supposed to always write such code (like copy an array) manually, to make it clear what's happens. To be clear, I'm not arguing this is good idea… but AFAIK it's official position about such ideas… and it makes some sense. -- WBR, Alex. -- 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.