HWȯɽ!?פʤƸäƤ礸ʤ
YosemiteiOS 8⡢˼ΥФޤǡ⡹1ǯȾɡSwiftϾʤȤ10ǯȤΤʤ餷Ʋǯ˵ڤ֤ȤʤΤ顣
SwiftäƤɤʸ?
Ȥꤢʤ٤虜Ȥ餷FizzBuzz㡣
struct Fizz { subscript(n:Int) -> String { return n % 3 == 0 ? "Fizz" : "" } } struct Buzz { subscript(n:Int) -> String { return n % 5 == 0 ? "Buzz" : "" } } let fizzbuzz = { (n:Int) -> String in let (f, b) = (Fizz(), Buzz()) var fb = f[n] + b[n] if fb.isEmpty { fb = "\(n)" } return fb } for n in 1...30 { println(fizzbuzz(n)) }
- äɽ̤ʤǤ¤ǡֶᤤΤrust˶ᤤΤScalaΥơGoȰݡ
- SwiftˤϡrustˤScalaˤgoˤʤĹĤ롣
main()
פȤȡϤषץȸħǤϤʤϺ⤳ǽ롣 - Ǥʣեʬ줿ץΥȥݥȤɤƤΤȤȡʤȤXcodeǤ
main.swift
Ȥե̾ǷƤ褦ϼ¤˷̿ʤʤ鲿ɴԤˤOS֥饦饹εץȤ顢ҤΰϺޤǥǤ롣 - ˤ⾡ħֿƸפΡ֤ޤäפꤲʤľƤȤ
0..3
[0,1,2]
[0,1,2,3]
0...3
ȽȤȤcase
ʸbreak
Ȥbreakơʤfallthrough
ȽȤȤ{key:value}
Ǥʤ[key:value]
ǡ{}
ϥ֥åѤʤȤȤ - ֤ĹϡƸΤȤŰơ֤줾Swift!פȤħ˷礤ƤȤ֥Υĥħ˳ƳФʤפȤݤ줬ФƤΤϡCryingեޥפää̤ξ顼̣ɥ˥åաɹˤϤषʪʤΤʤ
ƺǸĹApple˾ȯϪ˻ˤϴ롣ޤǤAppleȯȤΤϡHyperTalk - WikipediaˤAppleScriptˤ衢ܸơ֤!פȤ狼κۤƤϤä̤롢ַɥ˥åפäΤǤ(dylanɾǤۤɻȤäƤʤ)
SwiftϤȿդC(++)?erJava(Scrip)?erLisperPerl MongerPythonistaRubyist⡢ϤƤʤΤˤ褯ΤäƤȤˤʤΤǤϤʤ
AppleϥץȤԤ̤ˤ̤ΤȤˤ뤳Ȥ
?
App Storeǥ桼ǥ٥åѡ⤬ä˰ϤǤAppleޤä!
ľιͤ˵ڤǤ餽פääѤApple̤ʹۥƥ롦ե˥˥桼ĤƤĤȤ־Qפǽ㤯ʤ
桹ϥͥåȤ̤ƳؤǤ⤤ΤǤ롣
μͳפѤͤϡۤȤɤʤȤ
ɤȤΤϡХΤʤΤǤ롣ˤ٤ˤ⡣
Unix߰褿͡ϡɽƤ롣Unixˤϼʬļͳסȡ
ˡ2פƹǤνϤʤˤ⤫⼫ͳȤ櫓ǤϤʤ
ᤷʡöؤ줿ͳƤӶؤΤ̵˸¤ʤᤤΤ
η̤
This is particularly important for Android which dominates the mobile malware market
AndroidϥǥȥåOSƳΥͥåڤζ褫Ȥڤζ褫路ƤޤäΤǤ롣
iOS 8ǤϡʤΤؤ롣ExtensionsCustom KeyboardsAndroid桼餷֤ޤIntent?ס֤ޤ饭ܡ?פǤ⤢롣⤷Ȥˤ餬ؤƤơSimeji for iOSФƤΤɤʤäƤ?ǰSacco di App StoreǤ롣
ȯɽǡAppleȷˡǯΤߤøǤ륢ץΥɤΤ褦˰̥桼˳ƤΤ褦˻פ̥桼ץiCloud Driveˤ졢DriveˤҤդ줿Apple IDˤäƥɥ˥ƤϤư̥ǽˤʤȤ֤Τ
ȯɽ줿֦¥ƥѥȥפ餽ޤǤϡ鷺Ⱦ⡣
ѤȤơObjective-CȤΤϹΥޥ롣
JavaScript⡢ꡣ
伫ȤϡޤͥåȤWild WestɤTerra IncognitaäνͤǤ롣¤ΤȤ20פMicrosoftΡ21ƬGoogleΡʪοʤ˴뤷餳饦ɲˤƧڤ줺ˤ롣Ȥʤä鼫ξϼƤäƼФʤʤȺǤƤ뤷뤬ĤƤƨƻʤʤʤ褦äƤ롣
餳ѤͤޥΥƥǤ뤳Ȥ˴Ƥ⤤롣
ץͤпץ桼γϤषäȤΤޤ¤ǤϤʤΤ"There's an app for that"ΩΨ夬ꡢɬפäΤ礭ͳ⤷ץȤΤ¸߰յŻդȤˤʤΤǤСϴ֤٤ȤǤᤷ٤ȤǤϤʤ
ץߥȤΤϳڤȤǤ⤢ΤƤġʤȤǤ⤢롣ݡĤǤ褦ˡ
ϿǥХ餹뤷ʤApple⤿餽ȤƤΤϡƻʤΤΤʤ
Dan, an Ordinary Coder
Υ֥˥ȤˤɬפǤ
εˤϵĥ桼ȤǤޤ