Re: YAML 1.2/1.* vs YAML 2.0
Peter Murphy <[email protected]> Thu, 3 Mar 2016 14:21:27 +1000
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <CANZ_uBhQOBRVcY25+Yf0BrPTPOwP64A7c_V=MkqEzVzARuAhUQ@mail.gmail.com> |
On Thu, Mar 3, 2016 at 12:42 PM, Britton Kerin <[email protected]> wrote: > On Wed, Mar 2, 2016 at 3:43 PM, Peter Murphy <[email protected]> wrote: >> All, >> >> Composite keys should stay, because they are found to be useful by >> multiple people. Good software development is done for the benefit of >> the users, not for the benefit of the programmers. >> >> The only reason they are even considered being removed is that >> composite keys offend someone's aesthetic principles. That's not a >> good reason. > > I'd suggest not killing each other over this argument. What would be > useful to me and I guess most outsiders eyeballing YAML, is if it > worked like JSON but with less superflous " garbage and the nice block > array and hash support. There's even one JSON parser/emitter out > there that departs from standard just to allow optional quotes for key > names. > As I observe, the problems that people have is with the multiplicity of ways to present the same information, and the issues some of those ways have. For example, folded block scalars: https://github.com/yaml/YAML2/wiki/Folded-Block-Scalars Fortunately, there are other ways to represent the same information (double quote scalars), so the removal of folding block scalars shouldn't be a problem. The removal of composite keys requires a change to the YAML _content model_, on the other hand, and so it becomes impossible to represent the same thing that used to be representable in YAML. So for example, this fragment from the PyYAML documentation: http://pyyaml.org/wiki/PyYAMLDocumentation # YAML ? !!python/tuple [0,0] : The Hero ? !!python/tuple [0,1] : Treasure ? !!python/tuple [1,0] : Treasure ? !!python/tuple [1,1] : The Dragon Cannot be presented any longer. Best regards, Peter ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140