Vote for std.uuid
David Nadlinger
see at klickverbot.at
Sun Jun 24 06:30:15 PDT 2012
On Tuesday, 19 June 2012 at 11:24:50 UTC, Dmitry Olshansky wrote:
> It's time to start voting on its inclusion into Phobos. The
> voting ends at 25-26 June.
There is a serious @safe-ty issue with the current
implementation: randomUUID/parseUUID are marked @trusted, but
take an arbitrary range as template parameter, the methods of
which might be @system.
I'm aware that this mistake is astonishingly easy to make, and
that code like that can be extremely tiresome to get right –
there is no way to mark only a part of a template function
@trusted, so you can rely on inference for handling cases where
safety depends on the template arguments. I should really try to
find the time to finish my @trusted rant post soon…
However, under the assumption that the aforementioned issues will
be fixed, I vote for Yes. The library is nothing spectacular, and
I haven't had a chance to use it myself yet, but it seems like a
solid, well-documented implementation.
David
More information about the Digitalmars-d
mailing list