Domain Specific Language POC #1458
Audavis
started this conversation in
Show and tell
Replies: 1 comment
-
As a big fan of Kotlin DSLs and KotlinPoet (I use KPoet to generate DSLs!!!) I would love something like this. KPoet is quite verbose and this reads much cleaner. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've created a proof of concept for a Domain Specific Language (DSL) pattern for Kotlin Poet. I'm kind of curious what you folks think. If it's well received I'd be willing to build DSL for the remainder of the library.
The POC is just converting the short Hello World tutorial on the Kotlin Poet site into DSL.
Hello World Example: https://square.github.io/kotlinpoet/#example
Starting code using Chained Builders:
Ending code using DSL:
Beta Was this translation helpful? Give feedback.
All reactions