Probably not a good title to seek upvotes. If it does get upvotes, more programmers get share in your pain 😅

  • Darohan@lemmy.zip
    link
    fedilink
    arrow-up
    36
    ·
    18 hours ago

    Replace a semicolon (;) with a Greek Question mark (;), provided they’re working in a language that uses semicolons at the end of every line, and their IDE doesn’t highlight the difference (which some do now)

    • stetech@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      55 minutes ago

      Replace all spaces with the unicode non-breaking space that looks the same.

      Although I know at least some language servers will detect this and mark it as an error, lol.

    • sleep_deprived@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      19
      ·
      10 hours ago

      Fun fact, Rust has a special error message for this:

      Unicode character ‘;’ (Greek Question Mark) looks like a semicolon, but it is not.

      It also detects other potentially confusing Unicode characters, like the division slash which looks like /.