# SE-0362: Piecemeal adoption of future language improvements

**URL:** <https://forums.swift.org/t/se-0362-piecemeal-adoption-of-future-language-improvements/58384>\
**Category:** Proposal Reviews\
**Created:** [June 22, 2022, 8:23pm UTC](https://forums.swift.org/t/se-0362-piecemeal-adoption-of-future-language-improvements/58384 "2022-06-22T20:23:41Z")\
**Posts on this page:** 1\
**Showing post:** 33

<div class="post-metadata">

**Author:** ![ebg](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ebg/32/23208_2.png) [@ebg](https://forums.swift.org/u/ebg)\
**Post date:** [June 29, 2022, 5:13pm UTC](https://forums.swift.org/t/se-0362-piecemeal-adoption-of-future-language-improvements/58384/33 "2022-06-29T17:13:24Z")

</div>

How can we extend this to OS version checking? There is a real gap when adopting new capabilities between WWDC and the Fall OS releases.

> [@Do we need something like '#if available'?](https://forums.swift.org/t/do-we-need-something-like-if-available/40349):
>
> During the beta period of Xcode 12, we wanted to start implementing features that relied on the new SDK, but still keep our code compiling with the previous SDK. I've found myself wanting to do a compile-time check on the availability of certain SDKs. For example, I would want to write code like this: func doStuff() { if #available(macOS 11.0, \*) { // Use macOS 11.0-only code WidgetCenter.shared.reloadAllTimelines() } } However, the above code wouldn't compile at all with Xcode 11…

---

_[View the full topic](https://forums.swift.org/t/se-0362-piecemeal-adoption-of-future-language-improvements/58384)._
