I may have misunderstood you . . . Your example doesn’t compile. Did you mean that in the future the RangeHelpers package will work as you describe?
Here is the code
which doesn’t compile. See the error listing at the end of this message. The range function seems to be trying to compare an Int with a Day. I’m using RangeHelpers v0.1.9.
ERROR: LoadError: MethodError: no method matching isless(::Int64, ::Day)
Closest candidates are:
isless(::Union{Month, Quarter, Year}, ::Union{Day, Hour, Microsecond, Millisecond, Minute, Nanosecond, Second, Week})
@ Dates ~/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Dates/src/periods.jl:439
isless(::P, ::P) where P<:Period
@ Dates ~/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Dates/src/periods.jl:71
isless(::Period, ::Period)
@ Dates ~/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Dates/src/periods.jl:97
...
Stacktrace:
[1] <(x::Int64, y::Day)
@ Base ./operators.jl:343
[2] <=(x::Int64, y::Day)
@ Base ./operators.jl:392
[3] >=(x::Day, y::Int64)
@ Base ./operators.jl:416
[4] start_step_stop(start::DateTime, step::Day, stop::RangeHelpers.Approach{DateTime})
@ RangeHelpers ~/.julia/packages/RangeHelpers/crKui/src/RangeHelpers.jl:246
[5] range1(start::DateTime, step::Day, stop::RangeHelpers.Approach{DateTime}, length::Nothing)
@ RangeHelpers ~/.julia/packages/RangeHelpers/crKui/src/RangeHelpers.jl:231
[6] range(start::DateTime; stop::RangeHelpers.Approach{DateTime}, length::Nothing, step::Day)
@ RangeHelpers ~/.julia/packages/RangeHelpers/crKui/src/RangeHelpers.jl:141
[7] range0(start::DateTime, step::Day, stop::RangeHelpers.Approach{DateTime}, length::Nothing)
@ RangeHelpers ~/.julia/packages/RangeHelpers/crKui/src/RangeHelpers.jl:154
[8] range(; start::DateTime, stop::RangeHelpers.Approach{DateTime}, length::Nothing, step::Day)
@ RangeHelpers ~/.julia/packages/RangeHelpers/crKui/src/RangeHelpers.jl:137
[9] top-level scope
@ ~/Dropbox/tmp/try-openrange.jl:5
in expression starting at /Users/furue/Dropbox/tmp/try-openrange.jl:5