cplusplus / draft

C++ standards drafts
http://www.open-std.org/jtc1/sc22/wg21/
5.69k stars 748 forks source link

Alignment of declarations in library synopses #2791

Open CaseyCarter opened 5 years ago

CaseyCarter commented 5 years ago

Declarations in library header and class synopses often go to great lengths to add spaces to align declarations in various ways. We're inconsistent about when we do so, and how we do so. These hand-alignments are fragile, and result in weird "stairsteps" between regions of local consistency. We should establish a consistent policy for which declarations, if any, we align.

Some examples drawn from [utilities]:

jensmaurer commented 5 years ago

Editorial meeting:

tkoeppe commented 5 years ago

Thanks! Could you paste this list into the wiki, too?

tkoeppe commented 5 years ago

Some rationale from the discussion: We don't want to ban any sort of alignment outright, nor do we want a hard rule for when to align. Alignment is a tool, and we should use it with good judgement. We agree that it should not be overused, and we have come up with a number of specific constraints and principles:

In summary, within reason we can use alignment where it improves the overall presentation. Do feel free to address specific, focused instances via issues or pull requests where you feel that we can make improvements.

jensmaurer commented 5 years ago

Rules added to the wiki.