Thanks to Wavesonics for poking me with a real-wor...
# feed
l
Thanks to Wavesonics for poking me with a real-world usage (date/time), tomlkt finally supports full TOML 1.0.0 compliant. https://github.com/Peanuuutz/tomlkt
🙌 4
👍 7
👍🏻 1
👍🏾 1
😆 1
a
Congrats! You could make a PR to add it to the Kotlinx Serialization community formats list https://github.com/Kotlin/kotlinx.serialization/tree/v1.6.0/formats
are there differences between tomlkt and ktoml?
l
After a bit of glance I think mainly on three aspects: 1. the data structure: tomlkt tries to resemble official JSON format in regards to heavy usage of XxxElement, while ktoml specifies every data type separately and kind of keeps them as internal implementation. 2. the feature set: tomlkt does implement more features either from TOML or Kotlin itself, so less workaround. Most issues posted there are solvable with tomlkt. 3. the decoding process: tomlkt consumes source file character by character and cares much about operations and memory usage, so it has finer control and IMO is more robust.
a
I've used ktoml quite a bit and run into couple show stopper bugs for me, so was very happy to find @Loney Chou to be so responsive in implementing this!