Skip to content

Re: Any reason using pointers in service methods #88

Closed Answered by benbjohnson
huyfm asked this question in Q&A
Discussion options

You must be logged in to vote

You could also do non-pointers but I find that using pointers tends to make the calling code a bit easier to use. It's rare that pointer versus non-pointer code has a noticeable impact unless you're doing tight loops or a large volume of data.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by huyfm
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