Charlie Andrews wrote:
> I write go for a living, and these 3 comments were the only ones off the
> top of my head as well.
If you like, please explain the benefits of the first 2 points a bit more
detailed (see my other mail for my reasoning)
> > 3. Instead of appending to the same slice several times just use a
> > slice-literal like this:
> >
> > http://play.golang.org/p/U8r3Z_crOK
>
> this also decreases the amount of allocations the runtime does.
Ok, I will try to find a readable way for the slice-literal then. Thanks.
Regards,
Markus
Received on Thu Mar 13 2014 - 21:21:09 CET