Upgrade to Pro — share decks privately, control downloads, hide ads and more …

KotlinConf 2017 Keynote

kobito-kaba
November 14, 2017

KotlinConf 2017 Keynote

KotlinConf 2017のKeynoteの内容をざっくりとまとめました

kobito-kaba

November 14, 2017
Tweet

More Decks by kobito-kaba

Other Decks in Programming

Transcript

  1. Coroutine fun onClick() = launch(UI) { val response = async(CommonPool)

    { Repository.getTimeline() } showTimeline(response.await()) } 非同期処理をかんたんに、コールバック地獄もなしに、書ける
  2. actual external class Date { … actual fun getFullYear(): Int

    … } expect class Date() { … fun getFullYear(): Int … } common actual class Date { private val calendar: Calendar … actual fun getFullYear() = calendar[YEAR] … } JVM JS
  3. fun Pair<Date, Date>.toReadableString(): String { … if (from.getDate() != to.getDate()

    || from.getMonth() != to.getMonth() || from.getFullYear() != to.getFullYear()) { … } … } common