iqsharp icon indicating copy to clipboard operation
iqsharp copied to clipboard

Improve syntax for passing Result as a parameter to magics

Open tcNickolas opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. Currently one can pass a Result literal as a parameter to a magic command using integer literals: 1 for One and any other literal for Zero. I think it's confusing, since it's inconsistent with both Q# syntax and the syntax of passing parameters via the command line.

Describe the solution you'd like Magic commands should support passing a Result literal using Zero and One literals. I would also suggest limiting the integer literals supported to 0 and 1.

tcNickolas avatar Jul 12 '21 18:07 tcNickolas

Changes should be made to ResultConverter to update this behavior.

anjbur avatar Oct 01 '21 00:10 anjbur