Loose indentation?
#5

The code between two curly brackets (braces) should be tabbed in a level, for example:

pawn Код:
SomeFunction()
{
    if(contition)
    {
        if(some_other_condition)
        {
            // Code
        }
    }
}
It makes code easier to read and makes missing brackets easier to find (although, prevention is better than cure).
Reply


Messages In This Thread
Loose indentation? - by Hargrave - 27.07.2013, 17:31
Re: Loose indentation? - by Necip - 27.07.2013, 17:35
Re: Loose indentation? - by Hargrave - 27.07.2013, 17:37
Re: Loose indentation? - by MellowHammer - 27.07.2013, 17:37
Re: Loose indentation? - by MP2 - 27.07.2013, 17:44
Re: Loose indentation? - by Necip - 27.07.2013, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)