Chapter 5
Package Manager and Other Changes
Section 2
Compilation Condition Changes
When checking Swift version or the compiler version on Swift 4.2, we had to check if the version is greater or equal to a specific value, there was no support for the less than unary operator. This was resulting in less than ideal code because developers had to use the ! NOT operator to negate boolean condition, just to get the less than equivalent. This resulted in codes that are not too easy to read and understand immediately.