hi! I've wondered if the optics library can be implemented with a compiler plugin instead of actual code generation. If this was possible, what pros and cons have over the current implementation
s
simon.vergauwen
07/25/2021, 10:42 AM
Hey @carbaj0,
It’s currently ported to a plugin, but it remained at is.
I’m very interested in making this more lightweight, but I’m not sure how yet.
I think ideally the functions are available, but they don’t really exist. I guess for this we’d need to have special IDEA support for not having it being turned into a RED error line because the IDEA cannot find the code.
So I think this is blocked until Kotlin has official support for compiler plugins with IDEA support.
c
carbaj0
07/25/2021, 4:28 PM
would it be something similar to the copy() or toString() functions of a data class?