|
|
Subscribe / Log in / New account

Rethinking fsinfo()

Rethinking fsinfo()

Posted Aug 27, 2020 13:10 UTC (Thu) by kpfleming (subscriber, #23250)
In reply to: Rethinking fsinfo() by zyga
Parent article: Rethinking fsinfo()

YAML is a superset of JSON, using whitespace instead of (most) punctuation to indicate structure, and it supports comments.


to post comments

Rethinking fsinfo()

Posted Aug 28, 2020 13:13 UTC (Fri) by mathstuf (subscriber, #69389) [Link]

And if we could strip away things like type annotations, the umpteen ways of quoting text blocks (and other incidental possibilities without a complicated escape generator. Sure, you could call it YAML, but the only safe way to actually generate it with arbitrary data is to treat it like JSON because no one wants to write escape detectors for all of YAML's arcane syntax features.

Don't forget that some parsers have baked in the extension proposals(!) in, so you have to pay attention to things like accidentally generating merge keys ("<<").


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds