Game dev and Linux user

  • 5 Posts
  • 30 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle












  • 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.