logoalt Hacker News

himata4113today at 1:21 PM4 repliesview on HN

YAML seems like a great middleground here between xml and json..


Replies

tuetuopaytoday at 3:17 PM

My immediate thought. Except not "vanilla" YAML, but a safer stricter subset (iirc some people published a spec about it): no implicit conversion, no norway problem, etc. If only this gained actual traction.

The JSON in the article is a bit, let's say, heavy on the different objects and does not try to represent anything useful with most keys. All the things like `greaterOf`, `sum`, etc are much better expressed as keys than `{"children": [{"type": "greaterOf", ...}]}`.

Basically something that feels an reads like "freeform" yaml, yet that has an actual spec.

DamonHDtoday at 2:20 PM

I have worked with a lot of langauges over decades including YAML, and I regard it as one of the worst that I have tangled with for a number of reasons...

himata4113today at 4:25 PM

lots of haters when openspec is yaml(and json), k8s is yaml, most of go is yaml actually. sure I know it has faults, but it's really nice to type.

IshKebabtoday at 1:30 PM

YAML is never a great anything.

show 1 reply