On Thu, 4 Jan 2007 13:14:23 +0100
Giuseppe Luigi Punzi <[EMAIL PROTECTED]> wrote:

> IMHO I always liked the:
> 
> if AAA then
> begin
>   statements
>   ... 
>   ...
> end;
> 
> For me is the most cleared for writing code.

IMHO a good code beautifier should be configurable and support all the
mentioned styles, because I have seen all of them several times.

OTOH I have no idea what the topic has anything to with coding style.
Maybe we should start a thread, what a code beautifier for
lazarus should support as minimum? 


Mattias


> 
> 
> El Jueves, 4 de Enero de 2007 13:07, Samuel Cartaxo escribió:
> > Maybe it is a rare taste but I personally prefer to use code like
> > this
> >
> > if XXXXXX then begin
> >
> > end;//if
> >
> > with AAAAA do begin
> >
> > end;//with
> >
> > while CCCCC do begin
> >
> > end;//while
> >
> > etc.
> >
> > I find very easy to locate the closing END using this little
> > comment after it.
> >
> > What do you think? Does it look wrong for some reason?
> >
> > On 1/4/07, Christian Iversen <[EMAIL PROTECTED]> wrote:
> > > On Thursday 04 January 2007 11:35, Marco van de Voort wrote:
> > > > On Wed, Jan 03, 2007 at 10:53:40PM +0100, Christian Iversen
> > > > wrote:
> > > > > > > > Not really IMHO. C has many more, mostly due to macro's.
> > > > > > >
> > > > > > > I don't think I follow. Isn't macro style mostly like
> > > > > > > function style?
> > > > > >
> > > > > > The macro itself is that style, but the place where the
> > > > > > macro is placed doesn't have to adhere to where a function
> > > > > > could stand.
> > > > >
> > > > > Well that's true.
> > > > >
> > > > > Anyway, it's not like it's something any set of programmers
> > > > > could ever agree on ;-)
> > > >
> > > > I agree. Actually for me
> > > > - some sane form of basic identation and
> > > > capitalisation/namegiving. Consistency and compability with the
> > > > bulk of the src in that language is more important than the
> > > > actual makeup.
> > > > - putting begin/{ on a separate line line and
> > > > - not more Hungarian notation than stricly necessary
> > > >
> > > > is enough to make me happy because that is what I need to
> > > > achieve some form of productivity. (the begin/{ not on a
> > > > newline confuses my overview of blocks, hungarian notation is
> > > > mostly redundant in Delphi and a pain to maintain).
> > > >
> > > > The rest is IMHO not measurable.
> > >
> > > I agree that those 3 points are quite important, but it seems
> > > that in Technetium we enjoy 100% consistent coding style quite a
> > > bit. It gets easier to read, maintain and create new code - at
> > > least in my opinion :-)
> > >
> > > --
> > > Regards,
> > > Christian Iversen
> > >
> > > _________________________________________________________________
> > >      To unsubscribe: mail [EMAIL PROTECTED] with
> > >                 "unsubscribe" as the Subject
> > >    archives at http://www.lazarus.freepascal.org/mailarchives
> 
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives

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

Reply via email to