-
-
Notifications
You must be signed in to change notification settings - Fork 746
Partially Fix Issue 10828 - Add output range version of toString functions to std.datetime.Date #6060
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
|
Thanks for your pull request, @JackStouffer! Bugzilla references
|
57b5e63 to
5b7d214
Compare
wilzbach
left a comment
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.
Looks good.
std/datetime/date.d
Outdated
| +/ | ||
| string toISOExtString() const @safe pure nothrow | ||
| /// ditto | ||
| void toISOString(W)(ref W writer) const if (isOutputRange!(W, char)) |
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.
Nit: constraints should be indented on the same level as the function declaration.
std/datetime/date.d
Outdated
| } | ||
|
|
||
| /// ditto | ||
| void toSimpleString(W)(ref W writer) const if (isOutputRange!(W, char)) |
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.
Nit: constraints should be indented on the same level as the function declaration.
std/datetime/date.d
Outdated
| } | ||
|
|
||
| /// ditto | ||
| void toString(W)(ref W writer) const if (isOutputRange!(W, char)) |
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.
Nit: constraints should be indented on the same level as the function declaration.
std/datetime/date.d
Outdated
| import core.time;// : TimeException; | ||
| import std.traits : isSomeString, Unqual; | ||
| import std.typecons : Flag; | ||
| import std.range.primitives;// : isOutputRange; |
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.
Please use selective imports for new imports - otherwise you risk leaking the entire module.
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 thought it was the opposite?
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.
We can't convert the existing imports to selective imports because that would close the symbol leakage: #5584
5b7d214 to
1eeadc8
Compare
|
These random vibed errors are getting pretty annoying |
|
Yeah, I am opening a new Jenkins issue almost every second day - https://github.com/dlang/ci/issues (not mentioning hitting the existing ones), but I don't have a concrete proposal except for dropping Jenkins, creating one common bash script and running that one all repos on a reliable CI (e.g. CircleCi or SemaphoreCI). As we already have the build scripts for Jenkins it probably wouldn't take that long to do... |
Using the
toStringformat from #5991, updateDate's string methods to accept output ranges.