qdk icon indicating copy to clipboard operation
qdk copied to clipboard

Conditional compilation for individual capabilities

Open sezna opened this issue 2 years ago • 2 comments

We currently support @Config(Base) and @Config(Full). But, eventually, we will want to conditionally compile code for individual capabilities. See #882 for additional context.

This syntax could also be used to opt a Q# project in to new language features, like new UDT syntax. Similar to Rust's #! or Haskell's language extensions. See #543 for more context on that.

sezna avatar Jan 09 '24 21:01 sezna

@sezna if you start working on this, could we sync to talk through some options to make sure we can use it in the multiple scenarios conditional compilation would be useful?

cesarzc avatar Feb 01 '24 22:02 cesarzc

@cesarzc Yes certainly. We now have feature opt-in, for #543, but I haven't started any work on general conditional compilation. Let's work out a design for this together.

sezna avatar Feb 13 '24 22:02 sezna

@swernli says we've done this, he will verify.

sezna avatar Aug 13 '24 21:08 sezna

Fixed by https://github.com/microsoft/qsharp/pull/1393

swernli avatar Aug 13 '24 22:08 swernli