• kameecoding@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    24 days ago

    What are you writing your code in? Windows notepad? How the fuck do you not see the semicolon missing?

    • Swedneck@discuss.tchncs.de
      link
      fedilink
      arrow-up
      2
      arrow-down
      5
      ·
      24 days ago

      because semicolons are tiny characters that oftenhave to be appended to the end of lines (precisely the worst place for them to be easily visible, since they’ll blend in with the previous character)

      whitespace meanwhile is very easy to notice that it’s missing, as i’m sure you noticed when reading the above sentence.

      • m532@lemmygrad.ml
        link
        fedilink
        arrow-up
        1
        ·
        23 days ago

        In both cases, you press compile and the compiler goes “you missed a whitespace/semicolon HERE”