https://kotlinlang.org logo
#akkurate
Title
# akkurate
d

dave08

10/16/2023, 2:41 PM
Just wondering, would it be feasable to reuse Arrow Optics with Akkurate somehow? I mean for accessors.
j

Johann Pardanaud

10/16/2023, 6:45 PM
the DSL provided by Akkurate, the latter has to track the path of the property (to provide it in the constraint violations) and to allow a user to apply constraints to a property Arrow Optics' DSL is to get and set a property value, which is fundamentally very different Honestly, at the moment I can't think of any solution to combine Arrow Optics' DSL with Akkurate
d

dave08

10/17/2023, 10:15 AM
Isn't the get part of optics part of what accessors do (just saving reflection in run-time)?
j

Johann Pardanaud

10/17/2023, 11:28 AM
It does a part yes, but it does not provide the whole feature-set of accessors, I don't think it's possible to extend optics.