
What are the trade-offs of KSP-generated validation in Kotlin?
We are experimenting with a KSP-based approach to Kotlin validation where validation logic is generated during compilation and then executed at runtime.
But we wonder what their view is on this matter:
- What do you see as the biggest advantages of generated validation compared with reflection-based approaches?
- Where do you think the added KSP/build-time complexity becomes a disadvantage?
- What would you expect from a production-ready Kotlin validation library?
We are mainly interested in the technical discussion and criticism.
Repository: https://github.com/DeveloperSyndicate/Valix
u/Neat-Isopod-9177 — 1 day ago