You can look into generating the code, eg. using K...
# announcements
k
You can look into generating the code, eg. using KotlinPoet: https://github.com/square/kotlinpoet. It all still has to be compile-time of course.
g
Interesting. I’m reading about it. I’ve found also a way to execute kotlin scripts, but it looks like if I would like to achieve my goal I’ll be needing to automatically generate a .kt file. I was hoping to not do that at first glance, but maybe this is the only way (at least to have autocompletion available).