microsoft / qsharp

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

Pattern matching and match expressions #487

Open bamarsha opened 1 year ago

bamarsha commented 1 year 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 8 months ago

Related to #478 and #483