#22 Remove unsupported by Aer alternative syntax for control structures

Closed
opened 3 years ago by belliash · 1 comments
belliash commented 3 years ago
Owner

Aer Information

  • Aer Version (or commit ref): eb088cd0d7
  • Operating System: Linux
  • System Architecture (eg. arm, x86_64, ...): x86_64

Your problem description

Aer actually supports an alternative syntax for control structures: namely, if, while, for, foreach, and switch. In each case, the basic form of the alternate syntax is to change the opening brace to a colon (:) and the closing brace to endif;, endwhile;, endfor;, endforeach;, or endswitch;, respectively. This so-called template syntax is unnecessary in Aer.

<!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please take a moment to check that your issue doesn't already exist. 3. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> # Aer Information - Aer Version (or commit ref): eb088cd0d7 - Operating System: Linux - System Architecture (eg. arm, x86_64, ...): x86_64 # Your problem description Aer actually supports an alternative syntax for control structures: namely, if, while, for, foreach, and switch. In each case, the basic form of the alternate syntax is to change the opening brace to a colon (:) and the closing brace to endif;, endwhile;, endfor;, endforeach;, or endswitch;, respectively. This so-called template syntax is unnecessary in Aer.
belliash added the
enhancement
label 3 years ago
belliash self-assigned this 3 years ago
belliash commented 3 years ago
Poster
Owner

Done in 3f1397ed93 and 5cb19f63a5.

Done in 3f1397ed93 and 5cb19f63a5.
belliash closed this issue 3 years ago
belliash changed title from Remove unsupported by P# alternative syntax for control structures to Remove unsupported by Aer alternative syntax for control structures 3 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.