microsoft / qsharp

Azure Quantum Development Kit, including the Q# programming language, resource estimator, and Quantum Katas
https://microsoft.github.io/qsharp/
MIT License
368 stars 73 forks source link

Pattern matching and match expressions #487

Open bamarsha opened 11 months ago

bamarsha commented 11 months ago

Patterns in Q# can be extended to support UDTs, literals, etc. Match expressions would be useful for branching on an integer or string value, or a value of a sum type (#483). See microsoft/qsharp-language#81.

sezna commented 4 months ago

Related to #478 and #483