My bad. I should have specified that I meant struct literals. > On Aug 12, 2016, at 6:02 PM, Ian Lance Taylor <i...@golang.org> wrote: > > On Fri, Aug 12, 2016 at 2:29 PM, Anmol Sethi <an...@aubble.com> wrote: >> Keyed fields seem to be always better than unkeyed fields in a composite >> literal. >> Under what circumstances would I want to use unkeyed fields? > > Keys aren't always useful, e.g., > > var colors = [...]string{"red", "blue", "green", "yellow"} > > Ian > > -- > 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.
-- 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.