[fpc-devel] Semicolon before else

Juha Manninen juha.manninen at phnet.fi
Tue Jan 26 11:34:59 CET 2010


> Never use "then .. else" naked but instead "then begin ... end else
> begin ... end" with appropriate indentation (I prefer "end else begin"
> alone in a single line, but this is a matter of taste :) ;

I also do that sometimes just to avoid the semicolon problem, even if there is 
only one command between "begin" and "end".

Juha Manninen



More information about the fpc-devel mailing list