No, you are right but then I have made an explicit decision that state is important and mutable so hopefully I would take that into consideration when exposing the data.
lör 21 okt. 2017 kl 13:00 skrev Juliusz Chroboczek <j...@irif.fr>: > > I have started to use non pointer slices much more as of late. > > Every time I bother measuring it is always faster and it is better for > the > > GC (usually, caveats apply). > > So do I. I was just pointing out a caveat that tripped me a couple times. > > > It also, perhaps naively, feels safer... :) > > Not if your structs contain a Mutex. > > -- Juliusz > > -- > 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.