-
Hi, I am implementing toml deserializer for Kotlin (ktoml) and not able to understand how to handle following TOMLs:
In TOML standard it is specified, that nested tables should have the prefix of it's parent (
Is the same applied to inline tables and they should also have the prefix? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Yes. There's no difference between the two syntaxes for deserialisation purposes. The consuming application should see the same data either way. |
Beta Was this translation helpful? Give feedback.
-
@marzer got it, thanks. So the right answer is the following: prefixes are not needed for nested tables in inline structures. This code:
is equal to the following one:
|
Beta Was this translation helpful? Give feedback.
@marzer got it, thanks. So the right answer is the following: prefixes are not needed for nested tables in inline structures.
This code:
is equal to the following one: