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

Q# Structs #1515

Open
7 tasks
ScottCarda-MS opened this issue May 13, 2024 · 0 comments
Open
7 tasks

Q# Structs #1515

ScottCarda-MS opened this issue May 13, 2024 · 0 comments
Assignees
Labels

Comments

@ScottCarda-MS
Copy link
Contributor

ScottCarda-MS commented May 13, 2024

We want to add structs to the Q# language. This will allow us to alleviate some of the pain-points with existing language constructs, and give us the opportunity to refactor parts of the compiler that need improvement.

Tasks:

  • Add struct syntax to the parser and AST.
  • Additional changes will need to be made to the Path nodes to allow for field accessor syntax.
  • Lower struct AST nodes to HIR nodes. This will lower structs into UDTs.
  • Refactor UDT implementation in AST/HIR to allow fields to be referenced using the ref mechanism in the compiler.
  • Add lint warnings to deprecate UDT syntax.
  • Make necessary adjustments to language server. (hover, goto def, find refs)
  • Update docs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant