Swift (bahasa pemrograman): Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
Fabrianivan (bicara | kontrib)
→‎Example code: perbaikan akhir
Farras (bicara | kontrib)
kTidak ada ringkasan suntingan
Baris 1: Baris 1:
{{about|the Apple programming language|the parallel scripting language|Swift (parallel scripting language)}}
{{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 (programming language)|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>
| 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

Swift
Berkas:Apple Swift Logo.png
PengembangApple
Rilis perdana2014
Situs webhttp://developer.apple.com/swift
Repositoriswift.org
Terpengaruh oleh
Objective-C, Groovy[1]
Sunting kotak info
Sunting kotak info • L • B
Info templat
Bantuan penggunaan templat ini

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

  1. ^ Laforge, Guillaume (2 June 2014). "Apple's Swift programming language inspired by Groovy". Diakses tanggal 3 June 2014. 
  2. ^ a b "Apple announces Swift, a new programming language for iOS". 
  3. ^ The Swift Programming Language. Apple, Inc. 02 June 2014. 

External links