Preserves: An Expressive Data Language
preserves.dev
Preserves: An Expressive Data Language
1–10 of 46 posts
Re: Preserves: An Expressive Data Language
#2Re: Preserves: An Expressive Data Language
#3Re: Preserves: An Expressive Data Language
#4Here is the ABNF: https://preserves.dev/preserves-text.html
The syntax isn't the most interesting part though; the thing that distinguishes it from most other data languages out there is that it has semantics (= a rigorous definition of when values are equal and when they aren't). So you can use Preserves semantics with JSON syntax (a subset of Preserves' text syntax) as one way of getting actually-meaningful JSON.
Plus, comments (and other annotations) ;-)
Re: Preserves: An Expressive Data Language
#5Why/when/where would I need this?
Re: Preserves: An Expressive Data Language
#6Except they do in Python. It is extremely useful, surprisingly often.
Re: Preserves: An Expressive Data Language
#7Re: Preserves: An Expressive Data Language
#8> This is a good time to mention that even though from a semantic perspective sets and dictionaries do not carry information about the ordering of their elements. Except they do in Python. It is extremely useful, surprisingly often.
(ETA: What are you quoting there? I don't think that text appears on the Preserves site) (ETA2: Ah, it's the tutorial. Cool)
Re: Preserves: An Expressive Data Language
#9Re: Preserves: An Expressive Data Language
#10CSTML is targeting many of the same weaknesses in JSON. It's fun to see a whole different, competing set of design choices at work. I had a very different take on schema validation and how to use the < syntax.