• FQQD@lemmy.ohaa.xyz
    link
    fedilink
    English
    arrow-up
    104
    arrow-down
    4
    ·
    edit-2
    14 days ago

    It’s neat that Linux has the ability to do this, but I honestly can’t think of a good usecase for this. I think this is more confusing than it is useful

    • gramie@lemmy.ca
      link
      fedilink
      arrow-up
      10
      arrow-down
      2
      ·
      13 days ago

      I feel the same way about programming languages. There is no way that “User” and “user” should refer to different variables. How many times has that screwed people up, especially in a weekly typed language?

      One of the many things that I feel modern versions of Pascal got right.

      • Serinus@lemmy.world
        link
        fedilink
        arrow-up
        12
        arrow-down
        1
        ·
        edit-2
        13 days ago

        Nope. Completely different.

        Case is often used to distinguish scope. Lowercase is local while uppercase is public. “Name = name” is a pretty standard convention, especially in constructors.

        There is a ubiquitous use case in programming. There is not in the file system.

        • gramie@lemmy.ca
          link
          fedilink
          arrow-up
          5
          ·
          13 days ago

          My point is not about how case is meant to be used my point is that it is very easy to make a mistake that is difficult to spot. I think it makes a lot more sense to the case insensitive, and force different names to be used.

        • calcopiritus@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          13 days ago

          This is the first time I’ve seen uppercase denoting scope. Usually it is done with a “_” or “__” prefix.

          Casing styles usually mean different identifier types.

          snake_case or pascalCase for functions and variables, CamelCase for types, UPPER_SNAKE_CASE for constants, and so on.

          If we want to apply this to file systems, you could argue something like: CamelCase for directories, snake_case for files, pascalCase for symlinks, UPPER_SNAKE_CASE for hidden files.

    • Kusimulkku@lemm.ee
      link
      fedilink
      arrow-up
      2
      arrow-down
      2
      ·
      13 days ago

      I think if you can write them in two different ways it should consider them two different things