Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically Double Function Keywords, Engine-Defined Default Arguments & User-Defined Default Arguments #373

Merged
merged 9 commits into from
May 7, 2023

Conversation

AlexDarigan
Copy link
Collaborator

behold
image

Well we finally goddamn well did it. This feature was a pretty massive undertaking but we got it there eventually.

There is one single caveat: We can't do this automatically with inner classes but I did leave the option to add in a keyword and return value if needed. Nothing for default arguments though. I don't think supporting that level of parsing will be necessary because as is, it seems inner classes overall aren't very popular, even if used.

But beyond that, woohoo!

Users should no longer need to pass in a keyword
for functions like master, puppet, static etc.

Default arguments (both godot-default and user-defined)
should also be doubled automatically.

- Inner classes need to be resupported
- Weird issues with _init & dependecies
We can't auto handle default args or keywords here because it
would require ridicolous parsing and I don't think inner
classes are popular enough to justify that work load.
Some cases we can't do these automatically, such
as inner klasses, so we should still provide the option to
override. This also allows some backwords compat for time being
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant