Expected behavior: Date("")
throws an ArgumentError
. (DateTime("")
does this).
Actual behavior: Date("")
returns Date() == Date(1,1,1)
.
This seems bad. Has this already been discussed? Comments before I submit an issue?
Expected behavior: Date("")
throws an ArgumentError
. (DateTime("")
does this).
Actual behavior: Date("")
returns Date() == Date(1,1,1)
.
This seems bad. Has this already been discussed? Comments before I submit an issue?
Relevant: https://github.com/JuliaLang/julia/pull/23724 for possibly remove the default constructors, or at least make them less confusing.
I’ve added a comment to the end of that PR. I’m pretty sure it will eliminate this issue.