NOTICE: Upcoming style change -- no more AoTs
Opened this issue · 2 comments
hukkin commented
When toml-lang/toml#904 goes into a TOML spec release I plan to tweak Tomli-W's formatting by reverting the changes that make it write "arrays of tables", starting with PR #15. Instead I plan to write "multi line inline tables" when there is a table within an array.
This should:
- simplify the code
- reduce inspection of input data, increasing performance
- result in style that is easier to understand
- avoid non-uniform input reported here #35 (comment)
hukkin commented
Note to self: Consider #25 for both arrays and inline tables together with this change.
hukkin commented
Another note to self: This change shouldn't be made in this package until:
tomllib
standard library implements a TOML spec that includes "multi line inline tables"- EOL date of last Python version that doesn't support the new spec
So very far in the future.