Hi all, just wanted to share that I've released a ...
# opensource
b
Hi all, just wanted to share that I've released a format for KotlinX Serialization for Java Properties files, if anyone's interested ! https://github.com/bishiboosh/properties-serializer
🎉 2
e
it would be interesting to describe how it's different from https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-properties/ - I can see that it's a different implementation, but why?
b
The difference is that the one from Kotlin just transforms a class into a Map, whereas mine really parses or write a Java Properties file
I have to admit it's confusing, but the fault for that sits on Kotlin's side for calling this format "properties" where it doesn't serialize to a file format
but I should maybe add that as info in my README because you probably won't be the only one having this kind of interrogation
to be fair, my implementation reuses a lot of code from the one from Kotlin, it just adds the step that actually serializes the data to a file format
s
No offence, but isn't it trivial to serialize a map as properties, as the
Properties
class actually is a
Map
?
b
it's trivial from the JVM, but not from a KMP standpoint
👍🏻 1
👍 1
again, I should probably say it in the README, obviously, thanks all for the advice
e
a multiplatform reader/writer for Java Properties is useful on its own, without being tied to serialization IMO. connecting the two together would be trivial when needed
b
you're not wrong, I'll try to see if I can separate both sides when I get the time