Swift (programming language) - seanpm2001/WacOS GitHub Wiki


Swift (programming language)

Go back (WacOS/Wiki/)

Image

The icon for swift programming language view it here

Swift is a general purpose programming language made by Apple inc. on June 2nd 2014. It is used on all new Apple products, and was influenced by several languages, including Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and D.

The latest stable version of Swift (as of 2021, Tuesday September 14th at 2:41 pm) is 5.4.3.

Hello world program

For version 1.x Swift.

println("Hello world")

For version 2.x and above Swift

print("Hello world")

Source: RosettaCode

Use by Apple

Swift is used in all modern Apple products, including MacOS, iOS, iPadOS, TvOS, watchOS, and z/OS. It uses Apples CocoaTouch API.

Swift is an open source language, and due to its usage on Apple products, it is also used in the WacOS project.

This article on programming languages is a stub. You can help by expanding it!


Article info

Written on: 2020 May 27th at 2:14 pm)

Last revised on: 2021, Tuesday September 14th at 2:41 pm)

File format Markdown document (*.md *.mkd *.markdown)

Article version: 3 (2021, Tuesday September 14th at 2:41 pm)