You are viewing a single thread.
View all comments
7 points

I’m so hype for typed dictionaries

permalink
report
reply
3 points

We finally don’t need custom resources for simple exports!

permalink
report
parent
reply
1 point

Would you be willing to explain what a typed dictionary is and when it would be useful in the context of Godot?

permalink
report
parent
reply
4 points

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.

permalink
report
parent
reply
1 point

Thank you!

permalink
report
parent
reply

Godot

!godot@programming.dev

Create post

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

  • Posts need to be in english
  • Posts with explicit content must be tagged with nsfw
  • We do not condone harassment inside the community as well as trolling or equivalent behaviour
  • Do not post illegal materials or post things encouraging actions such as pirating games

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

  • The icon is a modified version of the official godot engine logo (changing the colors to a gradient and black background)
  • The banner is from Godot Design

Community stats

  • 1K

    Monthly active users

  • 669

    Posts

  • 2.5K

    Comments