Swift | |
---|---|
Paradigma | Multiparadigma: berorientasi protokol, berorientasi objek, fungsional, imperatif, blok terstruktur, deklaratif, bersamaan |
Dirancang oleh | Chris Lattner, Doug Gregor, John McCall, Ted Kremenek, Joe Groff, dan Apple Inc.[1] |
Pengembang | Apple Inc. dan kontributor sumber terbuka |
Rilis perdana | 2 Juni 2014[2] |
Rilis stabil | 6.0.3[3]
/ 13 Desember 2024 |
Rilis pratayang | 5.7 branch (dan Swift 6 datang)
|
Tipe sistem | Statis, kuat, inferensi |
Sistem operasi | Sistem operasi Apple (Darwin, iOS, iPadOS, macOS, tvOS, watchOS), Linux, Windows 10, Android |
Lisensi | Apache License 2.0 (Swift 2.2 dan kemudian) Berpemilik (hingga Swift 2.2)[4][5] |
Ekstensi nama berkas | .swift, .SWIFT |
Situs web | |
Repositori | swift |
Terpengaruh oleh | |
Objective-C,[6] Rust, Haskell, Ruby, Python, C#, CLU,[7] D[8] | |
Mempengaruhi | |
Rust[9] | |
Sunting kotak info • L • B |
Swift adalah bahasa pemrograman objek fungsional untuk pengembangan iOS dan OS X yang dibuat oleh Apple.[10] Didesain untuk berdampingan dengan Objective-C dan menghindari program dari kode yang salah. Swift diperkenalkan oleh Apple pada acara tahunan WWDC 2014.[10] Ini dibangun dengan compiler LLVM yang termasuk dalam Xcode 6 beta. Sebuah buku berisi 500 halaman petunjuk, The Swift Programming Language, dirilis bersamaan dengan WWDC, dan tersedia secara gratis di iBooks.[11]
Pada tanggal 2 Juni 2014, aplikasi WWDC menjadi yang pertama dirilis ke publik yang ditulis dengan Swift.
Swift is proprietary and closed: It is entirely controlled by Apple and there is no open source implementation.
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.
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.
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.