-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document the upsides and downsides of packed arrays versus typed arrays #78257
Document the upsides and downsides of packed arrays versus typed arrays #78257
Conversation
dbd72a0
to
952dadd
Compare
@@ -40,6 +40,7 @@ | |||
[/codeblocks] | |||
[b]Note:[/b] Arrays are always passed by reference. To get a copy of an array that can be modified independently of the original array, use [method duplicate]. | |||
[b]Note:[/b] Erasing elements while iterating over arrays is [b]not[/b] supported and will result in unpredictable behavior. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, does this also apply to packed arrays?
In my opinion it's worth it, for better discoverability. But this is not good for translators. If we make the paragraph identical for all |
ee9c0a8
to
22730be
Compare
22730be
to
ab8c9b6
Compare
Thanks! |
I've only added descriptions to Array and PackedColorArray so far. Let me know if it's good to go and I'll add similar descriptions to other Packed*Array types.