Skip to content
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

Are arrays ordered tuples? #1027

Open
Paalon opened this issue May 16, 2024 · 3 comments · May be fixed by #1028
Open

Are arrays ordered tuples? #1027

Paalon opened this issue May 16, 2024 · 3 comments · May be fixed by #1028

Comments

@Paalon
Copy link

Paalon commented May 16, 2024

Maybe it's so obvious that it's not clearly stated, but are arrays ordered tuples in TOML? I couldn't find the sentence in the document.

@eksortso
Copy link
Contributor

They're intended to be ordered lists of values. But, surprisingly, we never explicitly said they're ordered. Thanks for noticing that!

We could use a pull request to correct that oversight, if you wish to submit one.

arp242 added a commit to arp242/toml that referenced this issue May 17, 2024
Kind-of obvious, but doesn't hurt to explicitly mention it, as it adds
just one word. Rephrased slightly for clarity.

Fixes toml-lang#1027
@arp242 arp242 linked a pull request May 17, 2024 that will close this issue
@arp242
Copy link
Contributor

arp242 commented May 17, 2024

#1028

@eksortso
Copy link
Contributor

That should do the job nicely, thanks @arp242! It's the best transformation to clarify the matter: arrays are ordered values, with surrounding square brackets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants