-
Uuid is copyable, but should wen use copy OR reference when we are passing it? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
KodrAus
Oct 8, 2022
Replies: 1 comment
-
Hi @kvzn 👋 You can typically just pass |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kvzn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @kvzn 👋
You can typically just pass
Uuid
s around by-value, but sometimes it's more efficient to pass them by-reference. As a general rule though, I'd pass them by-value and then decide if by-reference is appropriate on a case-by-case basis.