logoalt Hacker News

Diti12/09/20242 repliesview on HN

Ever since YAML 1.2, released in 2009(!), your YAML example would parse your input as “is yaml robust” for the key, and “no” for the value.


Replies

Dylan1680712/09/2024

I used to think that fixed things, then I learned how many parsers refuse to update. Like PyYAML.

yencabulator12/09/2024

No, it wouldn't ;)

Extra hint:

    scandinavian countries:
      - dk
      - no
      - se

Edit: it's extremely unlikely a yaml parser implements that spec; the spec is irrelevant.
show 1 reply