Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSix forms of doc comments are five too many #287
Comments
rust-highfive
referenced this issue
Sep 24, 2014
Closed
Six forms of doc comments are five too many #6782
This comment has been minimized.
This comment has been minimized.
|
My personal opinion (acknowledging that probably none of these will happen until Rust 2.0, if ever):
|
This comment has been minimized.
This comment has been minimized.
|
The attribute forms are useful since they can be passed through macros: https://github.com/sfackler/rust-postgres/blob/master/src/types/mod.rs#L244 |
This comment has been minimized.
This comment has been minimized.
nixpulvis
commented
Aug 28, 2015
|
I think the distinction makes perfect sense, and each has a good use case. And despite being 6 forms, there are really only 3x2 with some consistencies. For example inner vs outer is always is a matter of a |
nrc
added a commit
to nrc/rfcs
that referenced
this issue
Nov 20, 2015
This comment has been minimized.
This comment has been minimized.
pradyunsg
commented
May 6, 2016
|
Please close this issue as it will be superseded by the discussion at #1371. |
nrc
added
the
T-lang
label
Aug 17, 2016
This comment has been minimized.
This comment has been minimized.
|
closing - dup of #1371 |
nrc
closed this
Aug 17, 2016
withoutboats
pushed a commit
to withoutboats/rfcs
that referenced
this issue
Jan 15, 2017
wycats
pushed a commit
to wycats/rust-rfcs
that referenced
this issue
Mar 5, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rust-highfive commentedSep 24, 2014
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:
////** *///!/*! */#[doc=""]#[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:
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