On Monday, 11 July 2016 07:06:03 UTC+3, Anmol Sethi wrote: > > https://gist.github.com/nhooyr/7b773ea98f0d08e698d4fe706b4f5b2a >
It depends on what problem you are solving manually specifying *cap* may not give you the exact same behavior as specifying the *len*. In this case it looks like the chains you build are immutable, hence you probably want to manually specify the *cap*. I would probably use the 2. version, because it to me is the clearest what it actually needs to do. + Egon -- 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.