-
Notifications
You must be signed in to change notification settings - Fork 18
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
Move away from using span value as a type parameter #12
base: master
Are you sure you want to change the base?
Conversation
cdaf9e4
to
26ce0c4
Compare
Codecov Report
@@ Coverage Diff @@
## master #12 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 5 5
Lines 177 188 +11
=====================================
+ Hits 177 188 +11
Continue to review full report at Codecov.
|
26ce0c4
to
4db217e
Compare
The current commit switches |
4db217e
to
77a4944
Compare
Currently the |
Note that with these changes since the value of the span is no longer part of the type things like julia> HourEnding(now(), Hour(3))
HourEnding{DateTime}(2018-03-08T14:44:00.085, 3 hours, Inclusivity(false, true)) This does have benefits as it makes our intersect function always return the same type: julia> dt = now()
2018-03-08T14:44:46.966
julia> intersect(IntervalEnding(dt, Hour(3)), HourEnding(dt - Hour(1), Hour(3)))
HourEnding{DateTime}(2018-03-08T13:44:46.966, 2 hours, Inclusivity(false, true))
julia> ans isa IntervalEnding{DateTime, Hour}
true |
I am eying this PR with a mix of excitement and trepidation. I look forward to reviewing this at a later date. |
Fair enough. I would like to get this merge next week sometime so let me know if you want to go through it together. |
That would be good. I'm not sure I'll have time next week, but I'll let you know. |
f36374c
to
27aad6e
Compare
eeb02a4
to
ba4c908
Compare
ba4c908
to
9d46dbf
Compare
Moving away from using the span value as a type parameter as this does not allow us to check properties of the type like "ending" (span is < 0) or "beginning" (span is > 0).