3 ms·
The Swift 5 release process document specifically implies that some Swift 4 code will not compile on Swift 5. This discussion is about source compatibility, not
by coder543 8y ago
The Swift 5 release process document specifically implies that some Swift 4 code will not compile on Swift 5. This discussion is about source compatibility, not binary compatibility, which neither Rust nor Go offer AFAIK.
The number 5 _also_ implies significant breaking changes. Otherwise, why wouldn't it be Swift 4.3?
Removing Swift 3 compatibility mode (which was part of Swift 4) is itself a major source-compatibility breaking change, even if nothing else.
- slavapestov 8y agoSo far there are only a handful of small breaking changes between -swift-version 4 and -swift-version 5 on the master branch. The only ones I can think of are a type safety hole getting plugged and some warnings for corner cases around access control that got promoted to errors.
- coder543 8y agoIf that's the case, that's encouraging to hear.
- saagarjha 8y ago"Source compatibility" for Swift means that the compiler provides a flag with that will allow it to compiler earlier versions of Swift.