SA-MP Forums Archive
Your indent style. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Your indent style. (/showthread.php?tid=489056)



Your indent style. - iZN - 20.01.2014

Today, I saw there are different types of indentation, so I was just wondering which style is mostly used by the community.

You can see the styles here: http://en.wikipedia.org/wiki/Indent_style

My style is Horstmann Style.


Re: Your indent style. - [ABK]Antonio - 20.01.2014

http://en.wikipedia.org/wiki/Indent_style#Variant:_1TBS


Re: Your indent style. - Scones - 20.01.2014

Allman, no doubt


Re: Your indent style. - newbienoob - 20.01.2014

http://en.wikipedia.org/wiki/Indent_style#Allman_style


Re: Your indent style. - Avi Raj - 20.01.2014

http://en.wikipedia.org/wiki/Indent_...orstmann_style


Re: Your indent style. - emokidx - 20.01.2014

http://en.wikipedia.org/wiki/Indent_style#Allman_style


Re: Your indent style. - QuaTTrO - 20.01.2014

Allman style
pawn Код:
while (x == y)
{
    something();
    somethingelse();
}
 
finalthing();



Re: Your indent style. - Omar55555 - 20.01.2014

Allman because it's kinda easy and there is alot of tutorials about it so it's easy to learn and it's the most famous aswell.


Re: Your indent style. - Kaperstone - 20.01.2014

http://en.wikipedia.org/wiki/Indent_style#Variant:_1TBS
1TBS
Quote:

This principle is amplified by bracing every if, else, while, etc.—including single-line conditionals—so that insertion of a new line of code anywhere is always "safe" (i.e., such an insertion will not make the flow of execution disagree with the source code indentation).

True.


Re: Your indent style. - thefatshizms - 20.01.2014

http://en.wikipedia.org/wiki/Indent_...nt:_Stroustrup