Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@bamarsha
Copy link
Contributor

@bamarsha bamarsha commented Dec 22, 2020

This is part of the implementation for the implicitly-scoped qubit allocation proposal, which specifies that parentheses for statement headers should be removed.

In the case of if, elif, while, and until, the parentheses surrounded an expression, so no deprecation will occur - the parentheses will simply be made optional, and will be parsed as a tuple expression.

In the case of for, using, and borrowing, the parentheses are deprecated and will be not be supported in the future.

Depends on microsoft/iqsharp#385.

Copy link
Contributor

@bettinaheim bettinaheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving for the merge to a feature branch.

@bamarsha bamarsha changed the base branch from main to feature/inline-qubit-scope December 23, 2020 23:45
@bamarsha bamarsha merged commit 3741994 into feature/inline-qubit-scope Dec 24, 2020
@bamarsha bamarsha deleted the samarsha/statement-parens branch December 24, 2020 01:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants