Initialize Array Size #5164
froggestspirit
started this conversation in
Scripting
Replies: 1 comment
-
In general, syntax sugar is only added for things that are done very often. We want to avoid having several ways to achieve the same thing in GDScript, unless there is a good reason to. Personally, I don't remember pre-allocating arrays like this often. |
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.
-
I'm not sure if this was brought up in the past, but can we implement the ability to declare an array with it's size, similar to some other languages?
EX:
Which should function equivilently to:
Beta Was this translation helpful? Give feedback.
All reactions