[Issue 13368] std.datetime.monthToString should be public

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 24 16:38:01 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13368

--- Comment #3 from Jonathan M Davis <jmdavisProg at gmx.com> ---
Well, I'd love to just deprecate toSimpleString, since it's not a standard
format (it comes from Boost, not something like ISO), and it increases
confusion, but doing so would break code (even if it wouldn't be immediately,
thanks to the deprecated keyword), so I don't know if I'd be allowed to
deprecate and remove it or not if I tried. I'll probably try one of these days
though (probably after I split std.datetime into a package), since I definitely
think that it was a mistake to have it, and I don't think that anyone should be
using it. That would probably go over better though once I've done custom time
format support, but that's also in line after splitting std.datetime, which I
will hopefully get to over the next month or so, but I'm changing jobs and
moving at the moment, so that will probably delay things.

In any case, toSimpleString will probably go away at some point, but it may not
to avoid forcing folks to change their code to avoid having it broken.

As for internationalization, it would be very cool for it to be in Phobos, but
that's a pretty big endeavor. If there were a good cross-platform C/C++ library
which did it well, we might have a wrapper for it in Phobos, but someone would
have to care about it enough and have enough time to spare to actually put
forth the effort to implement it and get it through the review process and get
it into Phobos. And no one has done that yet. There's nothing really stopping
it AFAIK except for that.

--


More information about the Digitalmars-d-bugs mailing list