3 ms·
> The world desperately needs a replacement for YAML. For situations like TFA you really want a configuration language that behaves exactly like you think it w
by hansvm 6y ago
> The world desperately needs a replacement for YAML.
For situations like TFA you really want a configuration language that behaves exactly like you think it will, and since you don't have to interop with other organizations you don't really need a global standard.
Moreover, broadly used config languages can be somewhat counterproductive to that goal. Take JSON as an example; idiomatic JSON serdes in multiple programming languages has discrepancies in minint, maxfloat, datetime, timezone, round-tripping, max depth, and all kinds of other nuanced issues. Existing tooling is nice when it does what you expect, but for a no-frills, no-surprises configuration language I would almost always just prefer to use the programming language itself or otherwise write a parser if that doesn't suffice (e.g., in multilingual projects).
Mildly off-topic: The problem here, more or less, was that the configuration change didn't have the desired effect on an in-memory representation of that configuration. We can mitigate that at the language level, but as a sanity check it's also a good idea to just diff the in-memory objects and make sure the change looks kind of like what you'd expect.
- atombender 6y agoYou don't need wide adoption for internal projects in an organization, but you do want great toolchain support. For example, the fact that NestedText is a Python library means a Python team could use it, but it's a poor fit for an organization whose other teams use Go and JavaScript/TypeScript. We use YAML for much more than configuration, by the way. I feel like YAML hits a nice sweet spot where it's usable for almost everything.
- BlueTemplar 6y ago> and since you don't have to interop with other organizations Until you have to, and all hell breaks loose ? Now, the example of codepages maybe isn't really appropriate to companies, but is still a good enough metaphor ?