Skip to content

Refactor the nested if-else statements in qasm_parser.py #2

@StrangledJTAC

Description

@StrangledJTAC

Problem:

Deeply nested if-else statements are difficulty to maintain and violates the open/closed principle.

Solution:

Refactor using the chain of responsibility (COR) pattern.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions