I feel that Yaml sucks. I understand the need for such markup language but I think it sucks. Somehow it’s clunky to use. Can you explain why?

  • NostraDavid@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    26 days ago

    YAML is fine if you use a subset (don’t use the advanced features - not like you know those anyway) and use explicit strings (always add " to strings), otherwise things may be cast when you did not intend values to be cast.

    Example:

    country: NO (Norway) will be cast to country: False, because it’ll cast no (regardless from casing) to false, and yes to true.

    country: "NO" should not be cast.