-
Notifications
You must be signed in to change notification settings - Fork 861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional comma in multi-line arrays #227
Comments
I'm against this purely because it's another addition to the spec and there isn't much to be gained IMO. I don't really see a consistency between value arrays and Also, TOML allows trailing commas, which makes one-item-per-line much more convenient anyway. |
1 similar comment
VCS diffs that are not as noisy would be one benefit to this feature |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to propose a small change to the array syntax: make the comma between elements optional if they are separated by a newline. This would allow writing this array:
alternatively like this:
Of course, commas after elements would still be allowed but they wouldn't be required provided the element is followed by newline.
This would be nicer for humans to write, and it would make the syntax of multi-line arrays more consistent with tables, where key/value pairs are likewise separated by just a newline.
The text was updated successfully, but these errors were encountered: