• @Landless2029
    link
    248 days ago

    That’s my biggest peev about JSON actually. No comments!! WTH!

    • NekuSoul
      link
      fedilink
      16
      edit-2
      8 days ago

      On one hand I agree, on the other hand I just know that some people would immediately abuse it and put relevant data into comments.

        • Ephera
          link
          fedilink
          38 days ago

          I have actually seen it in an XML file in the wild. Never quite understood why they did it. Anything they encoded into there, they could have just added a node for.
          But it was an XML format that was widely used in a big company, so presumably somewhere someone wrote a shitty XML parser that can’t deal with additional nodes. Or they were just scared of touching the existing structure, I don’t know.

      • @Feathercrown
        link
        English
        58 days ago

        This is why there are none, but I still think it’s dumb. Parsers can’t see comments anyways.

        • NekuSoul
          link
          fedilink
          9
          edit-2
          8 days ago

          That’s assuming people actually use a parser and don’t build their own “parser” to read values manually.

          And before anyone asks: Yes, I’ve known people who did exactly that and to this day I’m still traumatized by that discovery.

          But yes, comments would’ve been nice.

          • @bitjunkie
            link
            28 days ago

            A tool being flexible enough that a shitty dev can use it to make something shitty isn’t a poor reflection on the tool.

    • @TCB13
      link
      English
      18 days ago

      There’s comments in the specs and a bunch of parsers that actually inore //