Open danluu opened 10 years ago
Yeah, that is tricky. The whole providing-a-default format string has pretty much only led to problems, at least for DateTime. Maybe we get rid of it for DateTime and make the user supply the format string. Date
s are much less prone to error, so maybe we can keep it there.
Yeah, I'd definitely prefer no default format over "random" silent failures. I haven't done ruby for at least 6 years, but my recollection was that their DateTime would often just magically get the right answer. That's probably pretty complicated and still somewhat error prone, though.
Should issues go here or directly to JuliaLang/julia now that this is in base? In any case, if you don't specify a format and your format doesn't match the default format, it's possible to get an incorrect result instead of an error.
Of course this works fine if the correct format string is specified.