[Lazarus] clarification / Re: constant-highlight ? [Re: quick opinion poll / pascal highlighting "case"]
Martin
lazarus at mfriebe.de
Thu May 27 20:53:33 CEST 2010
On 26/05/2010 06:06, Jürgen Hestermann wrote:
> But why have an indentation after BEGIN? There is no new block to
> start after BEGIN. I would indent like this:
>
> begin
> if foo then
> begin
> bar := foo;
Who is to say that the begin is part of the block? (Anyone is free to
tread it as such, but where is it officially defined?)
Looking at the way it is normally described in english (and being a bit
picky):
I usually see statements like " A begin starts a new block"
And not like "a begin started a new block"
Then again, if you apply the same analysis to "end", then "end" would
need to still be indented, while "begin" wasn't....
Martin
More information about the Lazarus
mailing list