Bad default behavior for `Date` string parsing

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?

1 Like

Relevant: https://github.com/JuliaLang/julia/pull/23724 for possibly remove the default constructors, or at least make them less confusing.

1 Like

I’ve added a comment to the end of that PR. I’m pretty sure it will eliminate this issue.