https://kotlinlang.org logo
#compiler
Title
# compiler
j

johnaqel

03/06/2023, 2:14 AM
Hi folks, does anyone know if an AOP Kotlin compiler plugin exists? Something like AspectJ but for Kotlin. Has anybody been working on this?
e

ephemient

03/06/2023, 3:15 AM
for some purposes, you can consider using built-in Kotlin functionality instead of AOP: https://elizarov.medium.com/aop-vs-functions-2dc66ae3c260
but there aren't any general AOP frameworks for Kotlin as far as I know
j

johnaqel

03/06/2023, 4:21 AM
Thank you @ephemient. I had read that article before. But yeah, looking for an annotation based solution.
13 Views