On Wed, 5 Oct 2005, Darius Blaszijk wrote:

On Tue, 2005-10-04 at 23:55, Mattias Gaertner wrote:
- improved indenting

Beware. There are only a very few indenting styles that most people find
easier to read.
I believe everybody has it's own preferences definitely. Therefore
"improved" is not well chosen I admit.

It's nice, that you want to make the code more 'readable'. But IMO it's
better to add comments and rename identifiers, than to apply your personal
style to the code.
I believe that both indenting and commenting serve a purpose in
improving readability, and yes indenting is subject to arbitrary
choices. Still I believe that formalizing the indentation would be
benificial for all.
For my own purpose I use Jedi Code Format. This tool is very stable and
very customizable. It performs indentation / capitalization / cleanup
automatically and each aspect of the process can be controlled.

Last weekend, I implemented just that for Lazarus using an FPC unit.
Mattias Gaertner has the source code.

Michael.

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to