hi! I've wondered if the optics library can be imp...
# arrow
c
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
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
would it be something similar to the copy() or toString() functions of a data class?
s
Yes, that’s exactly the goal.
c

https://media.giphy.com/media/sDcfxFDozb3bO/giphy.gif

😂 1