-
Notifications
You must be signed in to change notification settings - Fork 20
mir.ndslice: improve codestyle #154
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
Conversation
| // undocumented | ||
| // zero cost variant of `std.range.iota` | ||
| /// | ||
| struct IotaMap() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember exactly, but you wanted to document it instead of setting it to private or protected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just undocumented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dscanner rightfully complains about that as you shouldn't have anything that is public and undocumented...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turn it off)
f1a255e to
378579d
Compare
Current coverage is
|
9254e25 to
5058cb1
Compare
Imho it is one of the more useful switches as I found > 10 occurrences in the codebase of undocumented public methods. So I would like to keep that flag. |
OK, document it) |
8d8c32a to
9f47784
Compare
like this or with more text? |
few words |
source/mir/ndslice/selection.d
Outdated
| // undocumented | ||
| // zero cost variant of `std.range.iota` | ||
| /++ | ||
| Zero cost variant of `std.range.iota` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zero cost variant of std.range.iota - this should be with // . Just add that this range is used for iotaSlice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, left it, but with small change:
Zero cost variant of `std.range.iota` for iotaSlice.
And make std.range.iota a link to iota
9f47784 to
88bb7b4
Compare
|
updated - i used the new |
What is this and would it work for Phobos? |
Yep I recently found it dlang/phobos#4079 - i think it was part of a move to deprecate a lot of old macros within Phobos, but this PR stalled somehow. |
no |
I still had these small improvement laying around - with them I can enable
dscannerformir.ndsliceas it now passes our code style.It's mostly just > 120 lines, missing
const, better readability for numbers and undocumented methods.