Skip to content

Add More Annotations to GDScript#106930

Closed
JustDooooIt wants to merge 13 commits intogodotengine:masterfrom
JustDooooIt:master
Closed

Add More Annotations to GDScript#106930
JustDooooIt wants to merge 13 commits intogodotengine:masterfrom
JustDooooIt:master

Conversation

@JustDooooIt
Copy link
Copy Markdown

GDScript currently has limited static checks. We should introduce annotations like Dart's meta, such as:

@mustCallSuper (mandatory parent call)
@Protected (function visibility)

@JustDooooIt JustDooooIt requested a review from a team as a code owner May 29, 2025 11:09
@dalexeev
Copy link
Copy Markdown
Member

We don't want to introduce keywords/annotations without runtime guarantees that are difficult to implement without a performance penalty and properly due to the way Godot works (set(), get(), call() are core APIs, not GDScript).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants