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

Create an overload for function fields to directly call the function #549

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

TimWhiting
Copy link
Collaborator

Generates another function to access and directly call a function field of a type.

This gets rid of the weird mystruct.func()() when getting and then directly calling a function.

I still generate the plain accessors with a locally qualified prefix thetype/get/function-field, and generate the caller with the locally qualified prefix typetype/call/function-field, this way for no-arg functions you can use mystruct.call/func() when the result type doesn't disambiguate.

@TimWhiting TimWhiting requested a review from daanx June 23, 2024 00:51
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.

None yet

1 participant