Why does kotest use init blocks for its DSL?
I’m writing about DSLs in Kotlin, and I think I understand most of the DSL types pretty well, but kotest is puzzling to me. Obviously, you can write a test framework - be it stand alone or on top of JUnit - with “normal” classes.
Kotest uses init blocks instead, and while I tried to understand the code, it was quite convoluted and I gave up. So I wanted to ask: Why does kotest prefer init blocks, and how does the mechanism work on a very high level view? Or could you point me to an article...