Creating Your Own DSL Using Lambda Expressions in Kotlin
summary
Shows how to use Kotlin lambdas instead of Java callbacks, inspects the generated Java-equivalent bytecode and Java 6/7 interoperability, and highlights a compile-time 22-parameter lambda limit. Demonstrates building a real builder-style DSL for library initialization using inline, extension and fixed functions to replace bulky config code, and reports the DSL is deployed to production across apps with positive team feedback.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 2:06Lambda expressions
- 8:20Java interoperability
- 16:36Higher-order functions
- 19:48apply and run functions
- 28:47let and also functions
- 31:58infix functions and DSLs
- 38:06Building a practical DSL
- 47:57Complete DSL example
- 48:21Q&A








