Join Slack
Was there, at some point, a feature of Arrow that allowed one to translate a data class into a list ...
# arrow
j
julian
12/17/2022, 7:40 PM
Was there, at some point, a feature of Arrow that allowed one to translate a data class into a list of tuples of member-name to value?
r
raulraja
12/17/2022, 8:12 PM
Hi Julian, yes, it was called
arrow-generic
It will come back or similar as part of a compile time reflection library or as compiler plugin for K2 FIR ~ Kotlin 1.9 or 1.10. We already started to prototype some basics for it
https://github.com/arrow-kt/arrow-reflection/blob/main/arrow-reflect-annotations/src/main/kotlin/arrow/meta/samples/Product.kt
j
julian
12/17/2022, 8:14 PM
Awesome. I thought I'd imagined it! 😆 Thanks!
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by