Replies: 2 comments
-
There's already an editor setting to add type hints when creating scripts from templates, or functions from signal connections in the script editor: Text Editor > Completion > Type Hints |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh okay, didn't know that thanks, and i don't thing type hints for things like a simple delta would be much of help 😅 so i'm closing the discussion |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
As far as i know type hinting is a good thing to do to prevent errors and get better completion across your code, a function like _physics_process takes a delta time which is float or for example a body_entered function which will always give a PhysicsBody2D or TileMap, i'm not sure if this is possible to implement automatic type hinting in every area without being buggy so lmk if i'm wrong
Beta Was this translation helpful? Give feedback.
All reactions