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

Support round-tripping parameter names from function type definitions #4

Open
tlively opened this issue Aug 15, 2023 · 0 comments
Open

Comments

@tlively
Copy link
Member

tlively commented Aug 15, 2023

Although the name section already supports naming parameters from function definitions, it does not support naming parameters from function type definitions, and so far this proposal does not support that either. If our goal is to be able to round trip all names in the text format (even those that cannot be used), we should add support for these documentary parameter names to this proposal.

Naming function type parameters is very similar to naming struct and array type fields. Support for field naming is added in the GC proposal, and in principal parameter names could be added there as well, but since that proposal is almost at phase 4 and there is no design or implementation for parameter names, it would be better to add support for those in this proposal instead.

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

No branches or pull requests

1 participant