Swift (bahasa pemrograman): Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Fabrianivan (bicara | kontrib) →Example code: perbaikan akhir |
kTidak ada ringkasan suntingan |
||
Baris 1: | Baris 1: | ||
{{about| |
{{about|bahasa pemorgraman Apple|bahasa skrip paralel|Swift (bahasa skrip paralel)}} |
||
<!--as the above indicates, "''This article is about the Apple programming language. For the parallel scripting language, see [[Swift (parallel scripting language)]].''" This means "don't link to http://swift-lang.org/, as that's the site for the parallel scripting language named Swift, not the site for the Apple programming language named Swift.--> |
<!--as the above indicates, "''This article is about the Apple programming language. For the parallel scripting language, see [[Swift (parallel scripting language)]].''" This means "don't link to http://swift-lang.org/, as that's the site for the parallel scripting language named Swift, not the site for the Apple programming language named Swift.--> |
||
{{pp-vandalism|expiry=3 June 2014|small=yes}} |
|||
{{stub}} |
|||
{{Current|date=June 2014}} |
{{Current|date=June 2014}} |
||
{{Infobox programming language |
{{Infobox programming language |
||
Baris 10: | Baris 8: | ||
| year = 2014 |
| year = 2014 |
||
| developer = [[Apple Inc|Apple]] |
| developer = [[Apple Inc|Apple]] |
||
| influenced_by = [[Objective-C]], [[Groovy ( |
| influenced_by = [[Objective-C]], [[Groovy (bahasa pemrograman)|Groovy]]<ref>{{cite web | url=http://glaforge.appspot.com/article/apple-s-swift-programming-language-inspired-by-groovy | title=Apple's Swift programming language inspired by Groovy | date=2 June 2014 | accessdate=3 June 2014 | author=Laforge, Guillaume}}</ref> |
||
| website = http://developer.apple.com/swift |
| website = http://developer.apple.com/swift |
||
}} |
}} |
Revisi per 4 Juni 2014 07.19
Artikel ini membahas suatu peristiwa terkini. Informasi pada halaman ini dapat berubah setiap saat seiring dengan perkembangan peristiwa dan laporan berita awal mungkin tidak dapat diandalkan. Pembaruan terakhir untuk artikel ini mungkin tidak mencerminkan informasi terkini. (June 2014) |
Swift | |
---|---|
Pengembang | Apple |
Rilis perdana | 2014 |
Situs web | http://developer.apple.com/swift |
Repositori | swift |
Terpengaruh oleh | |
Objective-C, Groovy[1] | |
Sunting kotak info • L • B |
Swift adalah bahasa pemrograman objek fungsional untuk pengembangan iOS dan OS X yang dibuat oleh Apple.[2] Didesain untuk berdampingan dengan Objective-C dan menghindari program dari kode yang salah. Swift diperkenalkan oleh Apple pada acara tahunan WWDC 2014.[2] 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.[3]
Pada tanggal 2 Juni 2014, aplikasi WWDC menjadi yang pertama dirilis ke publik yang ditulis dengan Swift.
Contoh kode
println("Halo, dunia")
let people = ["Anna": 67, "Beto": 8, "Jack": 33, "Sam": 25]
for (nama, age) in people {
println("\(nama) berusia \(age) tahun.")
}
References
- ^ Laforge, Guillaume (2 June 2014). "Apple's Swift programming language inspired by Groovy". Diakses tanggal 3 June 2014.
- ^ a b "Apple announces Swift, a new programming language for iOS".
- ^ The Swift Programming Language. Apple, Inc. 02 June 2014.