1 min readJan 7, 2019
Indeed it is possible. I’ve sketched the corresponding implementation in this gist. Unfortunately, these aspect combinators preclude the use of Kotlin inline
functions which otherwise enable efficient implementation of aspects completely on par with other JVM-based AOP solutions. However, it is possible to use both approaches as I show in my gist: define inline functions for single aspects (and, maybe, for commonly used combinations) and provide ability to combine arbitrary sets of aspects (flexible, but loosing inline).