Slide 1

Slide 1 text

Kotlin 1.4.0-RC Kotlin愛好会 vol.23

Slide 2

Slide 2 text

About Me ● Matthew Vern / Panini ● Twitter: @panini_ja Github: panpanini ● Mercari, Inc ● Android Engineer (US) ● Kotlin可愛い

Slide 3

Slide 3 text

Summary ● Kotlin 1.4 Release Candidate is ready! ● Let’s look at some interesting Kotlin 1.4 language features ● Let’s also look at some new behaviour changes

Slide 4

Slide 4 text

New Language Features

Slide 5

Slide 5 text

SAM conversions for Kotlin classes

Slide 6

Slide 6 text

Trailing Commas

Slide 7

Slide 7 text

Behaviour Changes

Slide 8

Slide 8 text

Smart cast in generic lambda expression

Slide 9

Slide 9 text

Companion Object INSTANCE visibility ● Originally only accessible from Java ● Even if the Companion Object is defined as private, the INSTANCE would be public

Slide 10

Slide 10 text

Summary

Slide 11

Slide 11 text

Summary ● A few new language features to make Kotlin easier to use ○ SAM conversion for Kotlin interfaces ○ Trailing comma in parameter lists ● Many Quality of Life (QoL) changes, makes Kotlin even more 可愛い ○ Smart cast in generic lambda ● Lets try Kotlin 1.4 EAP! ○ https://blog.jetbrains.com/kotlin/2020/07/kotlin-1-4-rc-released/

Slide 12

Slide 12 text

Have a nice Kotlin!