Use GDScript-style return type in function prototypes in the integrated docs #7607
mieldepoche
started this conversation in
Editor
Replies: 2 comments 1 reply
-
I think return type alignment in the table is more important. |
Beta Was this translation helpful? Give feedback.
1 reply
-
In my experience, the C-style signature style is more universally understood overall, and it's more relevant for C# users (and most GDExtension users). I'd keep it as-is for that reason. |
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.
-
I can't unsee it, methods return types are C-style (
type function()
) but arguments are GDScript-style (arg: Type
).Does it make it easy to catch the return type at a glance? Does it date from a time where GDScript didn't support specifying return types?
I think it would be better to use the GDScript syntax for the GDScript docs.
I guess it makes sense in the methods summary, but idk...

Beta Was this translation helpful? Give feedback.
All reactions