Speaker Details

Anton Arhipov
JetBrains

Anton is a Developer Advocate in the Kotlin team at JetBrains. With a professional background in server-side development, Anton has been building tools for developers for more than ten years. Recognized as a Java Champion since 2014, he often speaks at software conferences and contributes to the Kotlin YouTube channel.

View
Kotlin DSL in under an hour
Conference (INTERMEDIATE level)
MC 2

Learn how to create type-safe and statically typed DSLs in Kotlin. In this session, you will learn about the language features that make DSL creation possible:

- Top-level extension functions and properties

- Trailing lambda expressions as function parameters

- SAM type conversion

- Functional literals with receiver

- Infix functions

- Standard library scope functions

- Context parameters

Step by step, using the features above, I will convert Java code based on the builder pattern into an internal Kotlin DSL. The talk highlights the specific cases for using the DSL approach in Kotlin and the tradeoffs for introducing this programming technique into the projects.

More

Searching for speaker images...