• ramble81@lemm.ee
    link
    fedilink
    arrow-up
    11
    arrow-down
    2
    ·
    23 hours ago

    I’ve always hated case sensitivity. I know that at an ASCII level “variable” != “Variable” but is there really a reason to have a distinction between them?

    • fibojoly@sh.itjust.works
      link
      fedilink
      arrow-up
      15
      arrow-down
      1
      ·
      19 hours ago

      You are thinking it’s easy because you only think of e == E, but I’ll let you look up collation and accents and, you know, Unicode and let you think about it.

      There is nothing trivial about case sensitivity, except in trivial cases.

    • vithigar@lemmy.ca
      link
      fedilink
      arrow-up
      18
      ·
      22 hours ago

      You stated the reason yourself. Those are different values and matching in a case-insensitive manner is more work under the hood.

      • ramble81@lemm.ee
        link
        fedilink
        arrow-up
        8
        arrow-down
        3
        ·
        22 hours ago

        We do plenty of stuff for human consumption. Computers work for us, not the other way around. Insensitivity should be the default. It’s okay to give options. I’m not saying take that away.

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

          For some reason we decided that a lot of formats written by computers and read by computers would use ASCII encoding instead of raw data.

          Making a json or XML deserializer case insensitive would just make it slower for almost 0 benefit.