not sure where exactly to post this. I hope this is fine here.
I've been following the Observation Pitch with great interest and a first experimental implementation seems to have been merged into the main branch of Swift: https://github.com/apple/swift/pull/63725
I've never downloaded or used a development snapshot of Swift from the main branch before (from Swift.org - Download Swift) but I thought I'd give it a try.
I downloaded the snapshot from March 7, installed it and told Xcode to use it. That seems to work.
However, I can't figure out how to enable the experimental "Observation" feature. In the PR, I found the flag
SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION and from some other examples I found on the internet I figured that I'd need to add the following to my Swift Flags in Xcode:
Unfortunately, I get an error when I try to build the project:
<unknown>:0: error: unknown argument: '-enable-experimental-observation'
I've tried several variations of this, like
I'm not sure if I'm doing something wrong. Or is the feature not fully "public" yet?
I'd appreciate any help with this