View Single Post
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 01-10-2023 , 04:33   Re: Compiler shows 'loose indentation' despite code being ordered
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
Because the compiler expects the code to be in curly brackets .
The code already has a curly bracket at the end. Should there be more curly brackets? If yes, where should they be?

Quote:
Originally Posted by fysiks View Post
Use tabs. Show whitespace. Much easier to maintain proper indentation.

I actually don't think that if there is only a single line that the compiler cares (though the person should care). I dislike not using braces most of the time. I basically only skip braces when I'm returning a value and ending the function execution.
Yes, now i know i should do this.

Last edited by GlobalPlague; 01-10-2023 at 04:39.
GlobalPlague is offline