Skip to content

Are implementations expected to preserve the order of nodes in the document root? #154

Answered by zkat
swift2plunder asked this question in Q&A
Discussion options

You must be logged in to vote

It depends on your use case, honestly.

At the KDL level itself, those last two are two completely different documents, because child nodes are ordered.

But it your parser is putting things into a hash table in a use case where users don't actually care about order, that's actually fine?

So I guess the answer is "it depends on the use case"

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zkat
Comment options

@swift2plunder
Comment options

@swift2plunder
Comment options

Answer selected by swift2plunder
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