Clark C . Evans wrote:
> | What should a YAML loader do with the following stream?
> | --- #YAML:1.0
> | - hello
> | - world,
> | 10: I am sparse
> | 1: I am a duplicate sequence key
> | I presume this is an error condition, since its sister case
> | with duplicate map keys is an error.
Not so... or, I should say, it is an error but for a different reason.
10: I am sparse
Is *also* an error. Because the *syntax model* is violated. Either a branch
is a series or it is keyed; it can't be both! That's regardless of whether
there are duplicate keys involved.
So, you can't mix '- ' style and 'N: ' style entries in the same list. It is
one or the other.