3. Kotlinとは
To create a Java-compatible language, That compiles at least as fast as Java,
Make it safer than Java, i.e. statically check for common pitfalls such as null pointer dereference,
Make it more concise than Java by supporting variable type inference, higher-order functions (closures), extension functions, mixins
and first-class delegation, etc;
And, keeping the useful level of expressiveness (see above), make it way simpler than the most mature competitor – Scala.
By FAQ – Kotlin Programming Language(https://kotlinlang.org/docs/reference/faq.html)
2016/02/20 C# is not dead - Introducing Kotlin
4. Kotlinとは
JetBrains社が開発
ReSharperやIntelliJ IDEAを作っている会社
新しいJava系の言語
2011年 ロシア生まれ
2月15日に正式版1.0が出たばかり
ロゴが変わった
Android開発で期待されている
Android Studioでもすぐに使える
2016/02/20 C# is not dead - Introducing Kotlin
5. JavaとKotlin
100%の互換性を目指す
JavaのGetterとSetterがKotlinからはプロパティに見える
array.getCount() ⇒ array.count
JavaVM上での識別名を指定するアノテーションも
抽象メソッドが一つの匿名クラス(SAM Type)用の構文がある
Runnableとか Androidの開発をやると頻繁に出てました
Generics関係も対応
JavaVMの制約はあるが頑張っている
2016/02/20 C# is not dead - Introducing Kotlin