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



--
Prof. Dr. Samuel Jorge Marques Cartaxo
Department of Chemical Engineering
Center of Technology
Federal University of CearĂ¡

"This message is intended exclusively for its
addressee and may contain information that is
confidential, protected by a professional
privilege or which disclosure is prohibited by
law. Unauthorized use of such information is
prohibited and subject to applicable penalties."

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

Reply via email to