Kotlin DSL

DSL is an expressive way to declare data and even business rules or configurations.DSLs can either be internal or external. Kotlin has interesting support for building internal and external DSLs. 12 days of Kotlin is a great way to learn more about kotlin-idiomatic solutions. Today I will be exploring the 12 days of kotling posts in regards to DSL we will understand how they work and what options does kotlin provide to build rich DSLs. So I recorded a video and also coded the sample of the 12 days of kotling post. So Let’s get started.

The Video

The Code


Diego Pacheco

Originally published at http://diego-pacheco.blogspot.com on January 16, 2021.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Diego Pacheco

Brazilian, Software Architect, SWE(Java, Scala, Rust, Go) SOA & DevOps expert, Author. Working with EKS/K8S. diegopacheco.github.io (Opinions on my own)