Joerg Schilling wrote: > > >BTW: I do not believe that code with > 79 characters is more readable >but in a few exceptions, it is. > >What would happen if someone did write this: > > if (dp == ¬able) { > /* BEGIN CSTYLED */ > printf("Manufacturer is unknown because of the orange forum > embargo.\n"); > printf("As the orange forum likes to get money for recent > information,\n"); > printf("it may be that this media does not use illegal > manufacturer coding.\n"); > /* END CSTYLED */ > } > > I think it's better to pull the tab stops back (say 2 spaces) than use long lines. For the example above, I'd prefer:
const char* const orangeForumEmbargoWarning = "Manufacturer is unknown because of the orange forum embargo.\n" "As the orange forum likes to get money for recent information,\n" "it may be that this media does not use illegal manufacturer coding.\n"; if (dp == ¬able) { /* BEGIN CSTYLED */ puts( orangeForumEmbargoWarning ); /* END CSTYLED */ } Ian _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org