-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Description
Issue by bstrie
Tuesday May 28, 2013 at 12:36 GMT
For earlier discussion, see rust-lang/rust#6782
This issue was labelled with: B-RFC in the Rust repository
Currently we have six forms of doc comments:
- outer line
///
- outer block
/** */
- inner line
//!
- inner block
/*! */
- outer attribute
#[doc=""]
- inner attribute
#[doc="";]
Ideally this would be reduced to one, but if two are necessary then that's fine. It's perfectly acceptable to not cater to every miniscule style convention. Here is my proposal:
- Remove the direct attribute forms, since their unwieldiness was why we introduced the comment syntax in the first place. This reduces to four.
- Select either line or block, and remove the other. This reduces to two.
- Remove the inner form if possible. If we can find some special way to document modules without requiring a special syntax just for that, then so much the better.
Alternatively, we could conclude that it's simply too much trouble to have special forms for doc comments and just stick with the attribute forms. This would be somewhat uglier, but more consistent with the rest of the language
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.