dave08
05/22/2023, 12:23 PMobject
(like possibly in the original package + .optics
, or for Person
have PersonOptic
) to put all the extension functions on... on one hand, it's handy to have them all extend the class it deals with, but it adds lots of boilerplate to entity classes... adding companion object
to each one with no real need for it in the entity itself... and when dealing with large sealed class hierarchies, it's VERY messy...simon.vergauwen
05/22/2023, 12:35 PMcompanion object
when it's missing, just like KotlinX Serialization does but for that you need access to the compiler through plugins 🤕
We've been postponing working much on this ever since compiler plugins were announced in 2018/19 😕dave08
05/22/2023, 12:37 PMsimon.vergauwen
05/22/2023, 12:39 PMPersonOptic
.dave08
05/22/2023, 12:40 PMstojan
05/22/2023, 2:15 PMsimon.vergauwen
05/22/2023, 2:17 PMdave08
05/22/2023, 2:19 PM