Re: [dev] golang dwm status

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Thu, 13 Mar 2014 21:21:09 +0100

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

This archive was generated by hypermail 2.3.0 : Thu Mar 13 2014 - 21:24:13 CET