What's the advantage over JSON or YAML?
- Its based on type theory, and thus supports data types like tuples, records, and sum types. Those are explained in the specs.
- Does not use quotes to describe property names. Has a unique syntax for large property names.
- It allows for setting a nested property value directly.
- Its also a language to describe the data schema.
- Its syntax is similar to F# and OCaml, so users with some background in functional programming languages should feel it easy to work with.
RHS can also be a lambda too:
|> is not a syntactic sugar but is actually defined in the standard library as: For function composition, F# provides >> (forward composition) and << (backward composition), defined respectively as: We can use them to build reusable composed functions: F# is a beautiful language. Sad that M$ stopped investing into this language long back and there's not much interest in (typed) functional programming languages in general.