Yes, the comments like:
private
{private declarations}
public
{public declarations}
bother also me a lot.
I remember removing such leftover comments from existing code because they look so redundant and useless. Every Pascal programmer knows that after keyword "private" come private declarations and after "public" come public declarations.
Following that logic similar comments should be added after other keywords like "begin" and "end", too.
begin
{block begins}
i:=0; j:=0;
end;
{block ends}
Clearly this is a historical remain from Delphi. Somebody added the auto-comments there at day one and then nobody thought of it.
Lazarus followed to be compatible...
I planning to do a
bold move and remove such comment generation completely. If somebody
really wants them configurable then I guess an option must be added. I am not very motivated to implement such an option because I have other useful things to do and there are too many options already anyway.
Patches for the option are welcome surely.
What do people think?