[fpc-devel] Semicolon before else

Aleksa Todorovic alexione at gmail.com
Fri Jan 29 10:20:41 CET 2010


On Fri, Jan 29, 2010 at 08:09, Graeme Geldenhuys
<graemeg.lists at gmail.com> wrote:
>
> Non-confusing end result looks like this:
>
>  if a then
>  begin
>    DoSomething;
>  end
>  else
>  begin
>    DoOtherThing;
>  end;
>
> or
>
>  if a then
>  begin
>    DoSomething;
>  end
>  else begin
>    DoOtherThing;
>  end;

As well as both

if a then
  DoSomething
else
  DoOtherThing;

and

if a then
  DoSomething;
else
  DoOtherThing;

At least to me they are :-)

> But then it's like you said: It's your patch, use it or don't. :)

+1 ;-)



More information about the fpc-devel mailing list