How to specify ranges in YAML?

后端 未结 3 2438
终归单人心
终归单人心 2021-02-20 16:07

I can express

3rd page is the title page

in YAML

title: 3

What about the following?

3条回答
  •  醉话见心
    2021-02-20 16:51

    Andrey is right - there is no such thing as a basic range. Ranges can be defined on top of totally ordered data types. YAML does not even know the concept of ordering so it makes no sense to talk about ranges in YAML. YAML only knows the concept of node types, the concept of equality, and some predefined kinds of links between nodes. By the way I don't know any other data serialization lange (JSON, XML, CSV, Hessian, Protocol Buffers...) that natively supports ranges.

提交回复
热议问题