| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Coding style |
Gidday, Mate!
SA> AR>>> In other words I'd indent a follow-up line. By _more_ than
SA> AR>>> the usual 4 characters for normal indentation.
SA> GW>> Seconded! I indent follow up lines to 8 character increments.
SA>> Ditto - handy-dandy TAB key. :)
GW> You missed the point :-(. Not like that (in a Tommy Cooper voice )
SA>> {
SA>> if (stuff)
SA>> {
SA>> if (more_stuff)
SA>> {
SA>> }
SA>> }
SA>> }
Hah! Reformatting made a mess of that!
GW> but like this (assume appropriate declarations for all variables):
GW> {
GW> if (condition)
GW> {
GW> if ((some_long_winded_condition == TRUE) &&
GW> (Yet_another_long_winded_condition == FALSE))
GW> {
GW> fread (long_winded_buffer_name,sizeof(tediously_long_name),
GW> number_of_items,file_reference);
GW> }
GW> }
GW> }
Right, I got you. Yes - it is clearer, although I personally blag it all
on one line and to hell with the 80 character width!
SA>> Coding style wars, anyone? MCSIBTYCS? :)
GW> No thanks. It'd upset the moderator and is a total waste of bandwidth!
GW> Just as long as I don't have to use "One True Brace", I don't care!
The curly brace is our God.
Simon
... Trilogy (n). Series of three books, sometimes more.
... Tag-O-Matic V.13F Build #349
--- Vote John Burden for REC25!
* Origin: Tired Dog Software. (2:255/90)SEEN-BY: 396/1 622/419 632/371 633/260 267 270 371 634/397 635/506 728 SEEN-BY: 670/213 218 @PATH: 255/90 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™.