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
Is there a reason the to_array and as_* vector functions are by reference? All other vector functions that do not mutate use values.
My case is probably niche, but I happen to be using unaligned vectors, and cannot call by-reference functions on them.
I assume it would be a breaking change to change those functions to use values at this point, but I am curious about the rationale for the original decision.
Thank you
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a reason the
to_array
andas_*
vector functions are by reference? All other vector functions that do not mutate use values.My case is probably niche, but I happen to be using unaligned vectors, and cannot call by-reference functions on them.
I assume it would be a breaking change to change those functions to use values at this point, but I am curious about the rationale for the original decision.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions