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()פȤȡϤषץȸħǤϤʤϺone-liner⤳ǽ񤱤롣
  • Ǥʣեʬ񤭤줿ץΥȥ꡼ݥȤɤƤΤȤȡʤȤ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⡢ϤƤʤΤˤ褯ΤäƤcompletely new but instantly familiarȤˤʤΤǤϤʤ

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"ΩΨ夬ꡢɬפäΤ礭ͳ⤷ץȤΤ¸߰յŻդGetting the Job DoneȤˤʤΤǤСϴ֤٤ȤǤᤷ٤ȤǤϤʤ

ץߥ󥰤ȤΤϳڤȤǤ⤢ΤƤġʤȤǤ⤢롣ݡĤǤ褦ˡ

ϿǥХ餹뤷ʤApple⤿餽ȤƤΤϡƻplaygroundʤΤΤʤ

Dan, an Ordinary Coder