White Rabbit

Results 188 comments of White Rabbit
trafficstars

You think that we need to put **all** unknown tables into some map, that has a **String key**? That is a little bit unusual for TOML specification... But I love...

@NfNitLoop Thank you for this issue, I will pin it. I actually planned to start from it right now :)

A link for the SPEC: https://toml.io/en/v1.0.0#inline-table What should we pay attention on: 1) nested array of tables (may be later) 2) If the parent of a table or array of...

Difficult part here is to understand how to represent such structure in a tree. I suppose that we need to do the following: 1) If the trimmed string starts with...

Finally added the support for parsing of arrays of tables: https://github.com/akuleshov7/ktoml/pull/104 Next step is to make the **decoding**

> @akuleshov7 so what's still missing for array of tables to work ? decoding process. I have added parsing, added tree structures, only decoding is missing now

> Sync the [answer](https://github.com/akuleshov7/ktoml/discussions/92#discussioncomment-1954075). > > New [question](https://github.com/akuleshov7/ktoml/discussions/92#discussioncomment-1954685) raised. Yes, let it be open. At least we will mark internal methods with opt-in and revise private methods

@NfNitLoop Thank you for this feedback, actually I agree with you. May be in the very long term future (after COVID era 😄) we can support it under some option...

It should be configurable (we have KtomlConfig where this option can be set), because for some people it could be a very useful functionality: ``` [table1] a = 1 [table2]...

Tests: ``` @Test fun tablesRedeclaration() { val test = """ [table1] a = 1 [table1] a = 2 b = 2 """.trimIndent() assertEquals( SimpleTomlCase( Table1(1,2) ) , Toml.decodeFromString(test) ) }...