Swift yuqori pogʻonali, multi-paradigmali dasturlash tilidir. 2014-yilda Apple shirkati tomonidan ishlab chiqilgan[9].

Swift
Paradigmalari Multi-paradigmali: protokolga yoʻnaltirilgan, obyektga yoʻnaltirilgan, funksional, imperativ
Muallifi Chris Lattner, Doug Gregor, John McCall, Ted Kremenek, Joe Groff va Apple[1]
Tuzilgan yili 2-iyun, 2014-yil (9 yil avval) (2014-06-02)[2]
Operatsion tizim Apple operatsion tizimlari (Darwin, iOS, iPadOS, macOS, tvOS, watchOS), Linux, Windows 10, Android
Litsenziya Apache License 2.0
Propriyetar[3][4]
Fayl kengaytmalari .swift, .SWIFT
Vebsayt
Bunga asos boʻlgan tillar
Objective-C,[5] Rust, Haskell, Ruby, Python, C#, CLU,[6] D[7]
Buning asosida tuzilgan tillar
Rust[8]

Versiyalari tahrir

Versiya Chiqarilgan sana macOS Linux Windows
Swift 1.0 2014-09-09 Ha yoʻq yoʻq
Swift 1.1 2014-10-22 Ha yoʻq yoʻq
Swift 1.2 2015-04-08 Ha yoʻq yoʻq
Swift 2.0 2015-09-21 Ha yoʻq yoʻq
Swift 2.1 2015-10-20 Ha yoʻq yoʻq
Swift 2.2 2016-03-21 Ha Ha yoʻq
Swift 2.2.1 2016-05-03 Ha Ha yoʻq
Swift 3.0 2016-09-13 Ha Ha yoʻq
Swift 3.0.1 2016-10-28 Ha Ha yoʻq
Swift 3.0.2 2016-12-13 Ha Ha yoʻq
Swift 3.1 2017-03-27 Ha Ha yoʻq
Swift 3.1.1 2017-04-21 Ha Ha yoʻq
Swift 4.0 2017-09-19 Ha Ha yoʻq
Swift 4.0.2 2017-11-01 Ha Ha yoʻq
Swift 4.0.3 2017-12-05 Ha Ha yoʻq
Swift 4.1 2018-03-29 Ha Ha yoʻq
Swift 4.1.1 2018-05-04 yoʻq Ha yoʻq
Swift 4.1.2 2018-05-31 Ha Ha yoʻq
Swift 4.1.3 2018-07-27 yoʻq Ha yoʻq
Swift 4.2 2018-09-17 Ha Ha yoʻq
Swift 4.2.1 2018-10-30 Ha Ha yoʻq
Swift 4.2.2 2019-02-04 yoʻq Ha yoʻq
Swift 4.2.3 2019-02-28 yoʻq Ha yoʻq
Swift 4.2.4 2019-03-29 yoʻq Ha yoʻq
Swift 5.0[10] 2019-03-25 Ha Ha yoʻq
Swift 5.0.1 2019-04-18 Ha Ha yoʻq
Swift 5.0.2 2019-07-15 yoʻq Ha yoʻq
Swift 5.0.3 2019-08-30 yoʻq Ha yoʻq
Swift 5.1 2019-09-10 Ha Ha yoʻq
Swift 5.1.1 2019-10-11 yoʻq Ha yoʻq
Swift 5.1.2 2019-11-07 Ha Ha yoʻq
Swift 5.1.3 2019-12-13 Ha Ha yoʻq
Swift 5.1.4 2020-01-31 yoʻq Ha yoʻq
Swift 5.1.5 2020-03-09 yoʻq Ha yoʻq
Swift 5.2 2020-03-24 Ha Ha yoʻq
Swift 5.2.1 2020-03-30 yoʻq Ha yoʻq
Swift 5.2.2 2020-04-15 Ha Ha yoʻq
Swift 5.2.3 2020-04-29 yoʻq Ha yoʻq
Swift 5.2.4 2020-05-20 Ha Ha yoʻq
Swift 5.2.5 2020-08-05 yoʻq Ha yoʻq
Swift 5.3 2020-09-16 Ha Ha Ha[11]
Swift 5.3.1 2020-11-13 Ha Ha Ha
Swift 5.3.2 2020-12-15 Ha Ha Ha
Swift 5.3.3 2021-01-25 yoʻq Ha Ha
Swift 5.4[12] 2021-04-26 Ha Ha Ha
Swift 5.4.1 2021-05-25 yoʻq Ha Ha
Swift 5.4.2 2021-06-28 Ha Ha Ha
Swift 5.4.3 2021-09-09 yoʻq Ha Ha
Swift 5.5 2021-09-20 Ha Ha Ha
Swift 5.5.1 2021-10-27 Ha Ha Ha
Swift 5.5.2 2021-12-14 Ha Ha Ha
Swift 5.5.3 2022-02-09 yoʻq Ha Ha
Swift 5.6[13] 2022-03-14 Ha Ha Ha
Swift 5.6.1[14] 2022-04-09 yoʻq Ha Ha
Swift 5.6.2[15] 2022-06-15 yoʻq Ha Ha
Swift 5.6.3[16] 2022-09-02 yoʻq Ha Ha
Swift 5.7[17] 2022-09-12 Ha Ha Ha
Swift 5.7.1[18] 2022-11-01 Ha Ha Ha
Swift 5.8[19] 2023-03-30 Ha Ha Ha
Swift 5.8.1[20] 2023-06-01 Ha Ha Ha

Kodga misol tahrir

// Oʻzgaruvchilar
var implicitInteger = 70
var implicitDouble = 70.0
var explicitDouble: Double = 70
// Konstantalar
let numberOfApples = 3
let numberOfOranges = 5
let appleSummary = "I have \(numberOfApples) apples."
let fruitSummary = "I have \(numberOfApples + numberOfOranges) pieces of fruit."
print(Hello, world)

let people = ["Aziza": 67, Bobur: 8, Javlon: 33, Salima: 25]
for (name, age) in people {
    print("\(name) is \(age) years old.")
}

Yana qarang tahrir

Manbalar tahrir

  1. Patent raqami — 9329844
  2. „Swift Has Reached 1.0“. Apple (2014-yil 9-sentyabr). Qaraldi: 2015-yil 8-mart.
  3. „Swift, Objectively“. — „Swift is proprietary and closed: It is entirely controlled by Apple and there is no open source implementation.“.
  4. Lattner, Chris „Re: [LLVMdev [cfe-dev] [Advertisement] open positions in Apple's Swift compiler team“] (2014-yil 11-iyun). — „You can imagine that many of us want it to be open source and part of LLVM, but the discussion hasn't happened yet, and won't for some time.“. 2014-yil 14-iyulda asl nusxadan arxivlangan. Qaraldi: 2014-yil 12-iyun.
  5. Lattner, Chris „Chris Lattner's Homepage“. Chris Lattner (2014-yil 3-iyun). — „The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list.“. Qaraldi: 2014-yil 3-iyun.
  6. Lattner, Chris „Chris Lattner's Homepage“. Chris Lattner (2014-yil 3-iyun). — „I started work on the Swift Programming Language in July of 2010. I implemented much of the basic language structure, with only a few people knowing of its existence. A few other (amazing) people started contributing in earnest late in 2011, and it became a major focus for the Apple Developer Tools group in July 2013 [...] drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list.“. Qaraldi: 2014-yil 3-iyun.
  7. „Building assert() in Swift, Part 2: __FILE__ and __LINE__“. Qaraldi: 2014-yil 25-sentyabr.
  8. „Influences - The Rust Reference“. doc.rust-lang.org. Qaraldi: 2020-yil 2-may.
  9. Lardinois, Frederic „Apple Launches Swift, A New Programming Language For Writing iOS And OS X Apps“ (en-US). TechCrunch (2014-yil 2-iyun). Qaraldi: 2022-yil 7-sentyabr.
  10. Kremenek, Ted „Swift 5 Released!“ (en). Swift.org (2019-yil 25-mart). Qaraldi: 2019-yil 28-mart.
  11. „Download Swift“. Swift.org. Apple. Qaraldi: 2020-yil 15-dekabr.
  12. Kremenek, Ted „Swift 5.4 Released!“ (en). Swift.org. Apple (2021-yil 26-aprel). 2021-04-{{subst:padleft:26|2}}da asl nusxadan arxivlangan. Qaraldi: 2021-yil 26-aprel.
  13. Kremenek, Ted „Swift 5.6 Released!“ (en). Swift.org. Apple (2022-yil 14-mart). Qaraldi: 2022-yil 14-mart.
  14. „Release Swift 5.6.1 Release · apple/Swift“. GitHub.
  15. „Release Swift 5.6.2 Release · apple/Swift“. GitHub.
  16. „Release Swift 5.6.3 Release · apple/Swift“. GitHub.
  17. Borla, Holly „Swift 5.7 Released!“ (en). Swift.org. Apple (2022-yil 12-sentyabr). Qaraldi: 2022-yil 23-sentyabr.
  18. „Release Swift 5.7.1 Release · apple/Swift“. GitHub.
  19. „Release Swift 5.8 Release · apple/Swift“. GitHub.
  20. „Release Swift 5.8.1 Release · apple/swift“ (en). GitHub. Qaraldi: 2023-yil 14-iyun.

Havolalar tahrir