Dev snapshot: Godot 4.4 dev 2
Dev snapshot: Godot 4.4 dev 2
The PR harvest keeps going strongly for Godot 4.4, with massive new features such as typed dictionaries and error-less project import!
Dev snapshot: Godot 4.4 dev 2
The PR harvest keeps going strongly for Godot 4.4, with massive new features such as typed dictionaries and error-less project import!
I'm so hype for typed dictionaries
We finally don’t need custom resources for simple exports!
Would you be willing to explain what a typed dictionary is and when it would be useful in the context of Godot?
Gdscript let's you do static typing, so "var a : int" ensures that a is an integer. This can help prevent bugs and bad code, and even speeds up the interpreter since it can make some assumptions.
So until now, you couldn't do that with dictionaries, they always allowed any type as a key or value. This adds that functionality so dictionaries can be used with stricter rules, preventing bugs and making them faster.