Apple Introduces Swift 5.2 Programming Language

Apple Company ΠΎΠΏΡƒΠ±Π»ΠΈΠΊΠΎΠ²Π°Π»Π° programming language release Swift 5.2. Official builds prepared by for Linux (Ubuntu 16.04, 18.04) and macOS (Xcode). Source texts extend licensed under Apache 2.0.

When preparing the new release, the main attention was paid to expanding the diagnostic tools in the compiler, increasing the reliability of debugging, improving dependency handling in the package manager, and expanding support for the LSP (Language Server Protocol). Language support added called values ΠΈ opportunity using expressions like β€œ\Root.value” as functions.

Recall that the Swift language inherits the best elements of the C and Objective-C languages, and provides an object model that is compatible with Objective-C (Swift code can be mixed with C and Objective-C code), but differs in the use of automatic memory allocation and control overflows of variables and arrays, which significantly increases the reliability and safety of the code. Swift also offers many modern programming techniques such as closures, generics, lambda expressions, tuples and dictionary types, fast collection operations, functional programming elements. The Linux version is not tied to the Objective-C Runtime, which allows the language to be used in environments that lack Objective-C support.

The Swift implementation is built using technologies from the free LLVM project. To ensure high performance, Swift programs are compiled to native code that runs in Apple tests 30% faster than Objective-C code. Instead of a garbage collector, Swift uses object reference counts. Package manager included Swift Package Manager, which provides tools for distributing modules and packages with libraries and applications in the Swift language, managing dependencies, automated loading, building and linking components.

Source: opennet.ru

Add a comment