• JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 hours ago

    Are you sure? I’ve always heard it the other way around and a quick search for "YAML norway’ gives this

    The reason to why this is problematic in some cases, is “The Norway Problem” YAML has: when you abbreviate Norway to its ISO 3166-1 ALPHA-2 form NO, YAML will return false when parsing it

    Also, YAML 1.2 (2009) changed the format of booleans to only be case insensitive true and false. “No” no longer is false if you’re parsing as a version 1.2 document.

    • AnyOldName3@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 hours ago

      Yeah, looks like I’d remembered it backwards. It’s still an easily solvable problem by not using a load everything as whatever type you feel like function.