You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is literally no value in returning a pointer in this case. The Share struct is smaller and has only one ptr field data , leading to copying the value instead of pointer indirection having better performance. Also, working with a pointer is slightly more annoying.
There is literally no value in returning a pointer in this case. The Share struct is smaller and has only one ptr field
data
, leading to copying the value instead of pointer indirection having better performance. Also, working with a pointer is slightly more annoying.Refs:
The text was updated successfully, but these errors were encountered: