• Swedneck
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    1 year ago

    Don’t languages generally tell you about potential look-alike characters specifically for this reason?

    • Monsieur@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      The code editor I use would say something like syntax error ‘;’, expected ‘;’ and underline the character in red. That might lead to some head scratching as apparently the Greek character is literally the same, but with a different Unicode value.

      • Swedneck
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I’m talking about when you try to run/compile code, not in the editor.