You are currently viewing [Compiler plugin] Delegate suspend properties (getters/setters) PoC

[Compiler plugin] Delegate suspend properties (getters/setters) PoC

I never made a compiler plugin before, but due to posts like this I was motivated to give it a try. Using Arrow Meta, I tried to add suspend getters/setters to Kotlin and with a list of caveats and gotcha’s I managed to get a proof-of-concept working.
It’s far from ready to be used in the wild and there is still a lot I need to figure out, but I thought I’d share my progress to motivate some others to give creating a compiler plugin a try as well :).

https://github.com/Jolanrensen/kt-suspend-props-plugin

submitted by /u/Humpsel
[link] [comments]