-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Six forms of doc comments are five too many #287
Comments
My personal opinion (acknowledging that probably none of these will happen until Rust 2.0, if ever):
|
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 |
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 |
Please close this issue as it will be superseded by the discussion at #1371. |
closing - dup of #1371 |
Fix crates.io shield link
Promote {{-in-element}} to public API
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
The text was updated successfully, but these errors were encountered: