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

Kotlin - KTM JS Meetup 2017

Kotlin - KTM JS Meetup 2017

An introduction to the language.

Avatar for Rakeeb Rajbhandari

Rakeeb Rajbhandari

December 30, 2017

More Decks by Rakeeb Rajbhandari

Other Decks in Technology

Transcript

  1. val numbers = listOf(1, 2, 3, 4, 5) val oddNumbers

    = arrayListOf<Int>() for (number in numbers) { if(number % 2 != 0) { oddNumbers.add(number) } } | Imperative
  2. val numbers = listOf(1, 2, 3, 4, 5) val oddNumbers

    = numbers.filter { number -> number % 2 != 0 } | Declarative
  3. Look ahead • Key features: ◦ Generics ◦ DSLs ◦

    Coroutines ◦ … and many more! • Multi-platform support ◦ JavaScript ◦ iOS, MacOS Development ◦ Windows platform development ◦ Server • Common(s) module
  4. References: • Using Kotlin For Android • Official Documentation for

    Kotlin • Koans • Kotlin Links • Kotlin Conf