Skip to content
Discussion options

You must be logged in to vote

Where in the language specification is the basis for saying this?

It's not stated explicitly, but it would make sense that this is the case. Nevertheless, the language spec says that:

may omit most of these commas using the following rules...

and

To reflect idiomatic use, examples in this document elide commas using these rules.

Therefore the parser is to handle both the inclusion and ommission of commas.

Furthermore, CUE is a superset of JSON; which requires commas at the end of lines, but, annoyingly, not the last element. CUE relaxes both of these rules. 1

Footnotes

  1. https://cuelang.org/docs/tutorials/tour/intro/json/

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@eldesh
Comment options

@eldesh
Comment options

@slewiskelly
Comment options

Answer selected by eldesh
@eldesh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants