6

C++ in a nutshell: 90% of the errors are because you forgot a ; .

Comments
  • 5
    or a de-reference.
  • 7
    If you have been coding for more than a month and a missing semicolon takes more than 2 seconds to fix you should consider a career change.
  • 3
    The compiler tells you exactly where to look and the line that doesn't end in a semi sticks out anyway.
  • 4
    @lbfalvy go be totally accurate, sometimes a missed semicolon can cause a very cryptic error. Usually it doesn't
  • 2
    I find implicit declaration and memory issues related to constructors and copy constructors to be much more a pain in the ass, especially with a complex OOP design.
  • 1
    @lbfalvy yeah but like it usually happens when I'm exhausted and just want to finish the code (cpp makes me exhausted anyways). When you're tired it's easy to miss a ; .
  • 4
    @shenibaks At that point you should go to sleep, it's unlikely you'd produce anything useful in a state where fixing a missing semi is a challenge.
  • 1
    Linters
  • 0
    when i started using python 90% of the time i got an error for a ; it didn't need :v
Add Comment