hmm, suppose I have struct X that have 50 attributes that represent 50 cols 
in db, struct Y 4 attributes, 4 cols

and I have :

func FindX() *X {}
func FindXs() []*X {}

func FindY() *Y {}
func FindYs() []*Y {}

I don't care about mutable, since this is only a getter func, or should I 
care? 
since I already queried to db, and the caller is free to do anything to 
that result
because X is large, then I prefer pointer,
and then for the sake of consistency, 
others (e.g. struct Y) I set them too as pointer, 
regardless other structs may be a small struct
no receiver func yet for those structs
no modifying, mostly just reading the result

-- 
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.

Reply via email to