It depends. For values (no pointers) that 40 may be slower to copy than the
dereference of the pointer. But pointers allow modifications, so the extra cost
may be balanced by the gained safety and less headache. And less nil pointers.
--
You received this message because you are subscribed to t
Hi Tamás Gulácsi
If my User struct has 40 fields, will the decision be still the same?
I minified my `User` struct. It has 40 fields like "city,state,country,
address,email,IP,ua,status,verified.etc.,"
Will still `Case B` is better?
--
You received this message because you are subscribe
> type User struct {
> ID string
> Name string
> Location loc
> }
> *Considering the situation, I do not have to change data for Owner or
> Player after creating value for Games above and Player can sometimes remain
> Nil, should I use only User or it's better to use *User*
>
>
> I