Skip to content

Why pointer vs. value in the generated code? #43

Closed Answered by stephenafamo
burdiyan asked this question in Q&A
Discussion options

You must be logged in to vote

Actually, I should change the comment to be instead of []*Jet

The recommendation is not about pointers vs values, but more about using the defined type JetSlice over []*Jet. The reason is that there are some convenient methods defined on JetSlice that would not be available when using the plain slice.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@burdiyan
Comment options

@stephenafamo
Comment options

Answer selected by stephenafamo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants