Should union and similar be must_use? #26
winksaville
started this conversation in
Ideas
Replies: 2 comments
-
This is probably a good idea. I have also received some input that there is a desire for an API allowing in-place mutation of coordinates, for example during a translation. As that would reduce memory allocations. This feels like a first step in bifurcating the API that way. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Done. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Yesterday I had a bug in my code, I wanted to add a separate and distinct object to an existing CSG object. I made a noob error and wrote:
Obviously it must be assigned:
Otherwise it's a NOP as there are no side effects.
Suggestion, add the #[must_use] attribute to "all" operators that have no side effects.
Beta Was this translation helpful? Give feedback.
All reactions