30
divby0
7y

When I define a function which is supposed to return something (for example int), I always write 'return 0;' after I wrote the signature of it to avoid the red error-marker. It drives me crazy... After I finished coding I replace the 'return 0;' with what I actually wanted to return.

Comments
  • 3
    You're not alone. Alhthough I'm doing c#
  • 1
    Same here. You are not alone. 😂
  • 4
    I also write the return, then the code and then I forget about the previous return, leave it there and everything breaks.
  • 2
    @masterdoctor "clicking outside the function" sounds so silly if you are a VIM user
  • 3
    I like the red error marker. Reminds me that I'm not yet done with the function.
Add Comment