• nintendiator
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 年前

    The American is how it is supposed to be.

    The British one has the “color” changed

    [citation needed]

    • MouseWithBeer@iusearchlinux.fyi
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 年前

      I mean in code. Not sure how many programming languages are gonna accept “colour”. Or maybe they do and I am wrong, tbf I never thought about it till now.

      When it actually comes to the English language that’s a different story.

      • nintendiator
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 年前

        I don’t know any language where “colo[u]r” is a keyword, or a lexer-level entity tbh, so I’m not sure there would be any difference. Anywhere you can name a variable “color”, you can name it “colour”. C++ allows you to explicitly make one an alias to the other, for example.

        That said, I’ve seen a number of BBCode parsers need to take both “[color=”] and “[colour=]”. Really, we need code and programming languages in general to be less American. It’s 2023 already and in many programming languages I have to name my accounting variables “ano” (butthole) instead of “año” (year).