Swift (bahasa pemrograman): Perbedaan revisi

1.668 bita ditambahkan ,  7 tahun yang lalu
tidak ada ringkasan suntingan
(baru)
 
{{about|the Apple programming language|the parallel scripting language|Swift (parallel scripting language)}}
'''Swift''' adalah [[bahasa pemrograman]] buatan [[Apple Inc.|Apple]] untuk sistem operasi [[iOS]] dan [[Mac OS X v10.0|Mac OS X]] yang pertama kali diperkenalkan di [[Apple Worldwide Developers Conference|WWDC 2014]].<ref name="tnw">{{Cite web|url = http://thenextweb.com/apple/2014/06/02/apple-announces-swift-new-programming-language-ios|title = Apple announces Swift, a new programming language for iOS|date = |accessdate = |website = |publisher = |last = |first = }}</ref> Bahasa ini bertujuan menggantikan [[Objective-C]], bahasa pemrograman yang digunakan sistem operasi Apple saat ini.<ref name="tnw" /> Bahasa ini dibuat menggunakan pengompilasi [[LLVM]]. Panduan bahasanya juga dirilis di WWDC<ref>[https://itunes.apple.com/gb/book/swift-programming-language/id881256329?mt=11 The Swift Programming Language].</ref>
<!--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}}
{{Infobox programming language
| name = Swift (bahasa pemrograman)
| title = Swift
| logo = [[File:Apple Swift Logo.png|70px]]
| year = 2014
| 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>
| website = http://developer.apple.com/swift
}}
'''Swift''' adalah [[bahasa pemrograman]] buatanobjek [[Apple Inc.|Apple]]fungsional untuk sistem operasipengembangan [[iOS]] dan [[Mac OS X v10.0|Mac OS X]] yang pertamadibuat kali diperkenalkan dioleh [[Apple Worldwide Developers ConferenceInc.|WWDC 2014Apple]].<ref name="tnw">{{Cite web|url = http://thenextweb.com/apple/2014/06/02/apple-announces-swift-new-programming-language-ios|title = Apple announces Swift, a new programming language for iOS|date = |accessdate = |website = |publisher = |last = |first = }}</ref> BahasaDidesain iniuntuk bertujuanberdampingan menggantikandengan [[Objective-C]], bahasadan pemrogramanmenghindari program dari kode yang digunakansalah. sistem''Swift'' diperkenalkan operasioleh Apple saatpada iniacara tahunan [[Apple Worldwide Developers Conference|WWDC]] 2014.<ref name="tnw" /> BahasaIni inidibangun dibuatdengan menggunakan pengompilasicompiler [[LLVM]] yang termasuk dalam [[Xcode]] 6 beta. PanduanSebuah bahasanyabuku jugaberisi 500 halaman petunjuk, ''The Swift Programming Language'', dirilis dibersamaan dengan WWDC, dan tersedia secara gratis di ''iBooks''.<ref>[{{cite book|title=The Swift Programming Language|publisher=Apple, Inc.|date=02 June 2014|url=https://itunes.apple.com/gb/book/swift-programming-language/id881256329?mt=11 The Swift Programming Language].}}</ref>
 
Pada tanggal 2 Juni 2014, aplikasi WWDC menjadi yang pertama dirilis ke publik yang ditulis dengan Swift.
== Lihat pula ==
*[[Xcode]]
*[[Objective C]]
* http://swift-lang.org/
 
== ReferensiExample code ==
<source lang="objc">
println("Halo, dunia")
 
let people = ["Anna": 67, "Beto": 8, "Jack": 33, "Sam": 25]
for (nama, age) in people {
println("\(nama) is \(age) umur.")
}
</source>
 
== References ==
{{reflist}}
 
== PranalaExternal luarlinks ==
* [https://developer.apple.com/swift/ Swift diat Apple.com]
 
[[Category:Bahasabahasa pemrograman]]
[[Category:Apple Inc.]]
[[Category:2014]]
110

suntingan