Kotlin DSL #3914
vanillajonathan
started this conversation in
Show and tell
Kotlin DSL
#3914
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Kotlin is a language with some interesting features which lets you write domain-specific languages (DSL), a language within the language.
It lets you have strongly-typed arguments and lets the IDE provide you with auto-completion for aggregates.
This just scratches the surface of what is possible, it is possible to have strongly typed columns, and use infix functions, operator overloading and other stuff to implement custom operators and keywords to have it more strongly typed with compiler help and less strings.
You could use it like this.
File:
prql.kt
Beta Was this translation helpful? Give feedback.
All reactions