When not to use Blank Lines
Categories:
Do not use blank lines:
- at the beginning or end of any functions (after
beginand beforeend) - inside multiline expressions
Example 1
Bad code
procedure MATRIX_OnDrillDown(MATRIX_ColumnOrdinal: Integer);
begin
SetupDrillDownCol(MATRIX_ColumnOrdinal);
DrillDown(false, ValueType);
end;
Good code
procedure MATRIX_OnDrillDown(MATRIX_ColumnOrdinal: Integer);
begin
SetupDrillDownCol(MATRIX_ColumnOrdinal);
DrillDown(false, ValueType);
end;
Example 2
Bad code
if NameIsValid and
Name2IsValid
then
Good code
if NameIsValid and
Name2IsValid
then
Last modified March 26, 2022: added suggestions by TheDoubleH (b2053524)
by christianbraeunlich