Improving result builder failures using @available

Result builders in Swift are a great API for creating DSLs (Domain Specific Languages). In recent projects, we have used them to capture details about telemetry events and defining a set of feature flags that can be locally overridden by developers. We have a Flag type that is generic over the value the feature flag will return. We also have OverridableFlag which defines a flag that can be…