TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Simon Avery
from: George White
date: 1998-06-23 21:30:06
subject: Coding style

Hi Simon,

You wrote to me:

SA> AR>> In other words I'd indent a follow-up line. By _more_ than the
SA> AR>> usual 4 characters for normal indentation.
SA> GW> Seconded! I indent follow up lines to 8 character increments.

SA>Ditto - handy-dandy TAB key. :)

You missed the point :-(. Not like that (in a Tommy Cooper voice )

SA>Ie;

SA>{
SA>if (stuff)
SA>        {
SA>        if (more_stuff)
SA>            {
SA>            }
SA>        }
SA>}

but like this (assume appropriate declarations for all variables):

{
if (condition)
    {
    if ((some_long_winded_condition == TRUE) &&
                (Yet_another_long_winded_condition == FALSE))
        {
        fread (long_winded_buffer_name,sizeof(tediously_long_name),
                number_of_items,file_reference);
        }
    }
}

Such that the continuation line is on an 8 character indent and always
at least 8 characters after the code indent level.

SA>Coding style wars, anyone? MCSIBTYCS? :)

No thanks. It'd upset the moderator and is a total waste of bandwidth!
Just as long as I don't have to use "One True Brace", I don't care!

George

 * SLMR 2.1a * Computers eliminate spare time.

--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-717905) (2:440/4)
SEEN-BY: 396/1 622/419 632/371 633/260 267 270 371 634/397 635/506 728
SEEN-BY: 670/213 218
@PATH: 440/4 255/1 252/356 140/1 270/101 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.