What would you use for configuration loading? Equi...
# arrow
s
What would you use for configuration loading? Equiv of pureconfig for scala basically
d
I've used both Jackson and kotlin-serialization. The former is easier to use (more mature) but once again it's reflection based. It's fast, though, because it gets all the reflection out of the way up front and caches all that stuff for subsequent ops
s
Jackson and pureconfig are unrelated
Looking for something like the pureconfig library from scala
d
Looking at the pureconfig library, it's defining your config domain in code and then auto-unmarshalling your config file into those domain objects...
s
Yes but more as well
Like merging multiple files
Better error handling
I don't just want a json file to data class
d
Ah. Then yeah, I'm not sure. Config has been pretty manual in my experience.
s
Fair nuff
d
Kotlin has been "pretty close but not quite there yet" for a couple years now, and oh does it bug the everloving crap out of me.
s
Yeah it's got real potential though once those little things are ironed out
Pattern matching pless
d
Yeah and HKTs
(At least I have Arrow for HKTs)
s
Probably harder and less likely
Matching and typeclasses please come on andrey 😁
d
I want my type constructors dangit
1
s
Lol